diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-24 19:04:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-24 19:04:12 +0000 |
commit | 6d920eca0c6cae9faf401333316cd3698883fbc2 (patch) | |
tree | 75998b7dea42963fb1d1f46b1e524fa41e85c828 /src/join.c | |
parent | cd908e158d3aa63039e6dd1394b8019524cdfa68 (diff) | |
download | coreutils-6d920eca0c6cae9faf401333316cd3698883fbc2.tar.xz |
merge with 1.8g
Diffstat (limited to 'src/join.c')
-rw-r--r-- | src/join.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/join.c b/src/join.c index c8c649332..0b323ec4a 100644 --- a/src/join.c +++ b/src/join.c @@ -36,6 +36,7 @@ #include <getopt.h> #include "system.h" #include "version.h" +#include "long-options.h" char *xmalloc (); char *xrealloc (); @@ -117,8 +118,6 @@ static struct option const longopts[] = {"j", required_argument, NULL, 'j'}, {"j1", required_argument, NULL, '1'}, {"j2", required_argument, NULL, '2'}, - {"help", no_argument, &show_help, 1}, - {"version", no_argument, &show_version, 1}, {NULL, 0, NULL, 0} }; @@ -586,6 +585,9 @@ main (argc, argv) int optc, prev_optc = 0, nfiles, val; program_name = argv[0]; + + parse_long_options (argc, argv, usage); + nfiles = 0; print_pairables = 1; @@ -671,15 +673,6 @@ main (argc, argv) prev_optc = optc; } - if (show_version) - { - printf ("%s\n", version_string); - exit (0); - } - - if (show_help) - usage (0); - if (nfiles != 2) usage (1); |