diff options
Diffstat (limited to 'src/cat.c')
-rw-r--r-- | src/cat.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -32,7 +32,6 @@ #endif #include "system.h" #include "error.h" -#include "long-options.h" #include "safe-read.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -528,6 +527,8 @@ main (int argc, char **argv) #if O_BINARY {"binary", no_argument, NULL, 'B'}, #endif + {GETOPT_HELP_OPTION_DECL}, + {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; @@ -536,9 +537,6 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, - AUTHORS, usage); - /* Parse command line options. */ while ((c = getopt_long (argc, argv, @@ -615,6 +613,10 @@ main (int argc, char **argv) output_tabs = 0; break; + case_GETOPT_HELP_CHAR; + + case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); + default: usage (EXIT_FAILURE); } |