diff options
Diffstat (limited to 'src/head.c')
-rw-r--r-- | src/head.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/head.c b/src/head.c index 4c869baa1..8a45942d6 100644 --- a/src/head.c +++ b/src/head.c @@ -31,7 +31,6 @@ #include <sys/types.h> #include "system.h" #include "error.h" -#include "long-options.h" #include "xstrtoul.h" #include "safe-read.h" @@ -71,6 +70,8 @@ static struct option const long_options[] = {"quiet", no_argument, NULL, 'q'}, {"silent", no_argument, NULL, 'q'}, {"verbose", no_argument, NULL, 'v'}, + {GETOPT_HELP_OPTION_DECL}, + {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; @@ -266,9 +267,6 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, - AUTHORS, usage); - have_read_stdin = 0; print_headers = 0; @@ -368,6 +366,10 @@ main (int argc, char **argv) header_mode = always; break; + case_GETOPT_HELP_CHAR; + + case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); + default: usage (1); } |