summaryrefslogtreecommitdiff
path: root/src/seq.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-03-31 05:52:46 +0000
committerJim Meyering <jim@meyering.net>1999-03-31 05:52:46 +0000
commitfdd07e3d2b4113a076cbb862115c43c9285e8b55 (patch)
tree7639c6587c2472b375e7175b32b1ca6114be0f9d /src/seq.c
parent419aa421810a797b42eabc72dd767d26941bc17b (diff)
downloadcoreutils-fdd07e3d2b4113a076cbb862115c43c9285e8b55.tar.xz
No longer include long-options.h.
[long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
Diffstat (limited to 'src/seq.c')
-rw-r--r--src/seq.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/seq.c b/src/seq.c
index a0527891b..b15be8880 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -25,7 +25,6 @@
#include "system.h"
#include "error.h"
-#include "long-options.h"
#include "xstrtod.h"
/* The official name of this program (e.g., no `g' prefix). */
@@ -69,6 +68,8 @@ static struct option const long_options[] =
{ "equal-width", no_argument, NULL, 'w'},
{ "format", required_argument, NULL, 'f'},
{ "separator", required_argument, NULL, 's'},
+ {GETOPT_HELP_OPTION_DECL},
+ {GETOPT_VERSION_OPTION_DECL},
{ NULL, 0, NULL, 0}
};
@@ -117,9 +118,6 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
- AUTHORS, usage);
-
equal_width = 0;
format_str = NULL;
separator = "\n";
@@ -157,6 +155,10 @@ main (int argc, char **argv)
equal_width = 1;
break;
+ case_GETOPT_HELP_CHAR;
+
+ case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
+
default:
usage (1);
/* NOTREACHED */