aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-23 15:44:51 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-23 16:07:37 +0200
commitca22cda709b3ccd7f57505e2167d1c46c509ede3 (patch)
tree78f642ef0b03399dfafc904a337b092cb8ff05b8 /include
parent9d57a8073af171ae76298f746677fc19a14545a2 (diff)
downloadbusybox-w32-ca22cda709b3ccd7f57505e2167d1c46c509ede3.tar.gz
busybox-w32-ca22cda709b3ccd7f57505e2167d1c46c509ede3.tar.bz2
busybox-w32-ca22cda709b3ccd7f57505e2167d1c46c509ede3.zip
date: handle long options
RFC2822 obsoletes RFC822; Silently accept --rfc-822 and return rfc2822 output for compatibility. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/usage.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h
index 8316c4368..ca8810650 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -673,17 +673,27 @@
673#define date_full_usage "\n\n" \ 673#define date_full_usage "\n\n" \
674 "Display time (using +FMT), or set time\n" \ 674 "Display time (using +FMT), or set time\n" \
675 "\nOptions:" \ 675 "\nOptions:" \
676 IF_NOT_LONG_OPTS( \
676 "\n [-s] TIME Set time to TIME" \ 677 "\n [-s] TIME Set time to TIME" \
677 "\n -u Work in UTC (don't convert to local time)" \ 678 "\n -u Work in UTC (don't convert to local time)" \
678 "\n -R Output RFC-822 compliant date string" \ 679 "\n -R Output RFC-2822 compliant date string" \
680 ) IF_LONG_OPTS( \
681 "\n [-s,--set] TIME Set time to TIME" \
682 "\n -u,--utc Work in UTC (don't convert to local time)" \
683 "\n -R,--rfc-2822 Output RFC-2822 compliant date string" \
684 ) \
679 IF_FEATURE_DATE_ISOFMT( \ 685 IF_FEATURE_DATE_ISOFMT( \
680 "\n -I[SPEC] Output ISO-8601 compliant date string" \ 686 "\n -I[SPEC] Output ISO-8601 compliant date string" \
681 "\n SPEC='date' (default) for date only," \ 687 "\n SPEC='date' (default) for date only," \
682 "\n 'hours', 'minutes', or 'seconds' for date and" \ 688 "\n 'hours', 'minutes', or 'seconds' for date and" \
683 "\n time to the indicated precision" \ 689 "\n time to the indicated precision" \
684 ) \ 690 ) IF_NOT_LONG_OPTS( \
685 "\n -r FILE Display last modification time of FILE" \ 691 "\n -r FILE Display last modification time of FILE" \
686 "\n -d TIME Display TIME, not 'now'" \ 692 "\n -d TIME Display TIME, not 'now'" \
693 ) IF_LONG_OPTS( \
694 "\n -r,--reference FILE Display last modification time of FILE" \
695 "\n -d,--date TIME Display TIME, not 'now'" \
696 ) \
687 IF_FEATURE_DATE_ISOFMT( \ 697 IF_FEATURE_DATE_ISOFMT( \
688 "\n -D FMT Use FMT for -d TIME conversion" \ 698 "\n -D FMT Use FMT for -d TIME conversion" \
689 ) \ 699 ) \