diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-04 15:44:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-04 15:44:26 +0000 |
commit | d815c152dfb4d796fce6debeaaf14f2ae5534337 (patch) | |
tree | bd7ddbcf36af5d84e3485faeaeb8ea38c8d58579 /src/tail.c | |
parent | 25abb410d417faa40faa7833c55e19ee2819f804 (diff) | |
download | coreutils-d815c152dfb4d796fce6debeaaf14f2ae5534337.tar.xz |
Standardize --help and --version processing.
Diffstat (limited to 'src/tail.c')
-rw-r--r-- | src/tail.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tail.c b/src/tail.c index 2b24371f8..93083090b 100644 --- a/src/tail.c +++ b/src/tail.c @@ -33,7 +33,6 @@ #include "system.h" #include "argmatch.h" #include "error.h" -#include "long-options.h" #include "safe-read.h" #include "xstrtoul.h" @@ -179,6 +178,8 @@ static struct option const long_options[] = {"silent", no_argument, NULL, 'q'}, {"sleep-interval", required_argument, NULL, 's'}, {"verbose", no_argument, NULL, 'v'}, + {GETOPT_HELP_OPTION_DECL}, + {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; @@ -1316,6 +1317,10 @@ parse_options (int argc, char **argv, *header_mode = always; break; + case_GETOPT_HELP_CHAR; + + case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); + default: usage (1); } @@ -1343,9 +1348,6 @@ main (int argc, char **argv) have_read_stdin = 0; - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, - AUTHORS, usage); - { int found_obsolescent; int fail; |