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/uniq.c | |
parent | 25abb410d417faa40faa7833c55e19ee2819f804 (diff) | |
download | coreutils-d815c152dfb4d796fce6debeaaf14f2ae5534337.tar.xz |
Standardize --help and --version processing.
Diffstat (limited to 'src/uniq.c')
-rw-r--r-- | src/uniq.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/uniq.c b/src/uniq.c index 26c6753bd..822a5389d 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -25,7 +25,6 @@ #include "system.h" #include "linebuffer.h" -#include "long-options.h" #include "error.h" #include "xstrtol.h" #include "memcasecmp.h" @@ -85,6 +84,8 @@ static struct option const longopts[] = {"skip-fields", required_argument, NULL, 'f'}, {"skip-chars", required_argument, NULL, 's'}, {"check-chars", required_argument, NULL, 'w'}, + {GETOPT_HELP_OPTION_DECL}, + {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; @@ -289,9 +290,6 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, - AUTHORS, usage); - skip_chars = 0; skip_fields = 0; check_chars = 0; @@ -375,6 +373,10 @@ main (int argc, char **argv) } break; + case_GETOPT_HELP_CHAR; + + case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); + default: usage (1); } |