From 9ce4ae8142b191ab6c2135165d5904351b48f665 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 25 Mar 2008 02:43:34 +0000 Subject: date: make help text more understandable; small shrink text data bss dec hex filename 799025 641 7380 807046 c5086 busybox_old 799009 641 7380 807030 c5076 busybox_unstripped --- include/usage.h | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 450f80164..e7e9002f9 100644 --- a/include/usage.h +++ b/include/usage.h @@ -558,22 +558,30 @@ "world\n" #define date_trivial_usage \ - "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]" + "[OPTION]... [+FMT] [TIME]" #define date_full_usage \ - "Display current time in the given FORMAT, or set system date\n" \ + "Display time (using +FMT), or set time\n" \ "\nOptions:" \ + "\n -u Work in UTC (don't convert to local time)" \ "\n -R Output RFC-822 compliant date string" \ - "\n -d STRING Display time described by STRING, not 'now'" \ USE_FEATURE_DATE_ISOFMT( \ - "\n -I[TIMESPEC] Output an ISO-8601 compliant date/time string" \ - "\n TIMESPEC='date' (or missing) for date only," \ + "\n -I[SPEC] Output ISO-8601 compliant date string" \ + "\n SPEC='date' (default) for date only," \ "\n 'hours', 'minutes', or 'seconds' for date and" \ "\n time to the indicated precision" \ - "\n -D hint Use 'hint' as date format, via strptime()" \ ) \ - "\n -s STRING Set time described by STRING" \ - "\n -r FILE Display the last modification time of FILE" \ - "\n -u Print or sets Coordinated Universal Time" \ + "\n -d TIME Display TIME, not 'now'" \ + "\n -r FILE Display last modification time of FILE" \ + "\n [-s] TIME Set time to TIME" \ + USE_FEATURE_DATE_ISOFMT( \ + "\n -D FMT Use FMT for str->date conversion" \ + ) \ + "\n" \ + "\nRecognized formats for TIME:" \ + "\n [hh:]mm:ss" \ + "\n mon.day-hh:mm[:ss]" \ + "\n year.mon.day-hh:mm[:ss]" \ + "\n MMDDhhmm[[YY]YY][.ss]" \ #define date_example_usage \ "$ date\n" \ -- cgit v1.2.3