summaryrefslogtreecommitdiff
path: root/coreutils/date.c
diff options
context:
space:
mode:
authorDenys Vlasenko2020-11-28 22:01:15 +0100
committerDenys Vlasenko2020-11-28 22:01:15 +0100
commitf26c5660c2f4b6e096eca69f1de342fe3871ccf1 (patch)
tree07192268a9946aec2f62f3cb0626ca4bcf5e8f6b /coreutils/date.c
parent900eae17384e52cd31d166c09d038cc6e1b64019 (diff)
downloadbusybox-f26c5660c2f4b6e096eca69f1de342fe3871ccf1.zip
busybox-f26c5660c2f4b6e096eca69f1de342fe3871ccf1.tar.gz
date: trim --help (no need to show long opts)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/date.c')
-rw-r--r--coreutils/date.c28
1 files changed, 9 insertions, 19 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 7fead01..3a3344b 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -96,30 +96,20 @@
//usage: "[OPTIONS] [+FMT] [TIME]"
//usage:#define date_full_usage "\n\n"
//usage: "Display time (using +FMT), or set time\n"
-//usage: IF_NOT_LONG_OPTS(
-//usage: "\n [-s] TIME Set time to TIME"
//usage: "\n -u Work in UTC (don't convert to local time)"
-//usage: "\n -R Output RFC-2822 compliant date string"
-//usage: ) IF_LONG_OPTS(
-//usage: "\n [-s,--set] TIME Set time to TIME"
-//usage: "\n -u,--utc Work in UTC (don't convert to local time)"
-//usage: "\n -R,--rfc-2822 Output RFC-2822 compliant date string"
-//usage: )
+//usage: "\n [-s] TIME Set time to TIME"
+//usage: "\n -d TIME Display TIME, not 'now'"
//usage: IF_FEATURE_DATE_ISOFMT(
-//usage: "\n -I[SPEC] Output ISO-8601 compliant date string"
-//usage: "\n SPEC='date' (default) for date only,"
-//usage: "\n 'hours', 'minutes', or 'seconds' for date and"
-//usage: "\n time to the indicated precision"
+//usage: "\n -D FMT Use FMT (strptime format) for -d TIME conversion"
+//////// ^^^^^^ busybox invention, not compat
//usage: )
-//usage: IF_NOT_LONG_OPTS(
//usage: "\n -r FILE Display last modification time of FILE"
-//usage: "\n -d TIME Display TIME, not 'now'"
-//usage: ) IF_LONG_OPTS(
-//usage: "\n -r,--reference FILE Display last modification time of FILE"
-//usage: "\n -d,--date TIME Display TIME, not 'now'"
-//usage: )
+//usage: "\n -R Output RFC-2822 date"
//usage: IF_FEATURE_DATE_ISOFMT(
-//usage: "\n -D FMT Use FMT (strptime format) for -d TIME conversion"
+//usage: "\n -I[SPEC] Output ISO-8601 date"
+//usage: "\n SPEC='date' (default) for date only,"
+//usage: "\n 'hours', 'minutes', 'seconds' or 'ns'"
+//usage: "\n for date and time"
//usage: )
//usage: "\n"
//usage: "\nRecognized TIME formats:"