From d815c152dfb4d796fce6debeaaf14f2ae5534337 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Apr 1999 15:44:26 +0000 Subject: Standardize --help and --version processing. --- src/unexpand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/unexpand.c') diff --git a/src/unexpand.c b/src/unexpand.c index ed6443751..c0749c4ed 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -42,7 +42,6 @@ #include #include "system.h" -#include "long-options.h" #include "error.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -96,6 +95,8 @@ static struct option const longopts[] = { {"tabs", required_argument, NULL, 't'}, {"all", no_argument, NULL, 'a'}, + {GETOPT_HELP_OPTION_DECL}, + {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; @@ -389,9 +390,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; exit_status = 0; convert_entire_line = 0; @@ -418,6 +416,8 @@ main (int argc, char **argv) add_tabstop (tabval); tabval = -1; break; + case_GETOPT_HELP_CHAR; + case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: if (tabval == -1) tabval = 0; -- cgit v1.2.3-54-g00ecf