diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-26 00:11:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-26 00:11:14 +0000 |
commit | d7c526e66d7c4d3d11ca80c141b9fae18f0a9668 (patch) | |
tree | 6aad3a466a53d24a42c6b94a98edd429ff3e95b8 /src/date.c | |
parent | cfe240bbd8520c852962f5feac1cfc5cf4903eb4 (diff) | |
download | coreutils-d7c526e66d7c4d3d11ca80c141b9fae18f0a9668.tar.xz |
merge with 1.8.1i
Diffstat (limited to 'src/date.c')
-rw-r--r-- | src/date.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/date.c b/src/date.c index 9e5605ca7..08998b2e1 100644 --- a/src/date.c +++ b/src/date.c @@ -224,20 +224,17 @@ static void usage (status) int status; { - fprintf (status == 0 ? stdout : stderr, "\ -Usage: %s [OPTION]... [+FORMAT] [MMDDhhmm[[CC]YY][.ss]]\n\ -", - program_name); - if (status != 0) fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else { + printf ("Usage: %s [OPTION]... [+FORMAT] [MMDDhhmm[[CC]YY][.ss]]\n", + program_name); printf ("\ \n\ - -d, --date STRING display time described by STRING, not `now'\n\ - -s, --set STRING set time described by STRING\n\ + -d, --date=STRING display time described by STRING, not `now'\n\ + -s, --set=STRING set time described by STRING\n\ -u, --uct, --universal print or set Universal Coordinated Time\n\ --help display this help and exit\n\ --version output version information and exit\n\ @@ -278,6 +275,5 @@ FORMAT controls the output. Interpreted sequences are:\n\ %%y last two digits of year (00..99)\n\ "); } - exit (status); } |