diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-04 12:21:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-04 12:21:39 +0000 |
commit | 6f67177fae129b7f5c50b6e5d133110a515f9237 (patch) | |
tree | 8fc4ea442ad7b740f39e70c1b787a95b6dc6e034 | |
parent | 2c035a7cfd7e54e3865d987dec0206e1dc24b6de (diff) | |
download | coreutils-6f67177fae129b7f5c50b6e5d133110a515f9237.tar.xz |
(parse_long_options): Separate package name
and version number to accomodate new --version output requirement.
-rw-r--r-- | lib/long-options.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/long-options.c b/lib/long-options.c index edca61171..810965f06 100644 --- a/lib/long-options.c +++ b/lib/long-options.c @@ -36,11 +36,12 @@ static struct option const long_options[] = Be careful not to gobble up `--'. */ void -parse_long_options (argc, argv, command_name, version_string, usage) +parse_long_options (argc, argv, command_name, package, version, usage) int argc; char **argv; const char *command_name; - const char *version_string; + const char *package; + const char *version; void (*usage)(); { int c; @@ -62,7 +63,7 @@ parse_long_options (argc, argv, command_name, version_string, usage) (*usage) (0); case 'v': - printf ("%s - %s\n", command_name, version_string); + printf ("%s (%s) %s\n", command_name, package, version); exit (0); default: |