diff options
author | Bruno Haible <bruno@clisp.org> | 2003-02-18 12:55:25 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-02-18 12:55:25 +0000 |
commit | 362493686d5d58634f098d9c74c0427e830a2475 (patch) | |
tree | 058289bce81a97c2fc7c7067e6a986648ad9fe3d | |
parent | ec800f65ec88465b0f9b3f9063b945dd4749f535 (diff) | |
download | gperf-362493686d5d58634f098d9c74c0427e830a2475.tar.gz |
A more standard --version output.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/options.cc | 7 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2002-11-17 Bruno Haible <bruno@clisp.org> + * src/options.cc (Options::parse_options): Include copyright notice + and authors in --version output. + Avoid artificial duplicates. * src/keyword.h (KeywordExt::init_selchars_tuple): New declaration. (KeywordExt::init_selchars_multiset): Renamed from diff --git a/src/options.cc b/src/options.cc index d7f670d..f743738 100644 --- a/src/options.cc +++ b/src/options.cc @@ -901,6 +901,13 @@ Options::parse_options (int argc, char *argv[]) } case 'v': /* Print out the version and quit. */ fprintf (stdout, "GNU gperf %s\n", version_string); + fprintf (stdout, "Copyright (C) %s Free Software Foundation, Inc.\n\ +This is free software; see the source for copying conditions. There is NO\n\ +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ +", + "1989-1998, 2000-2002"); + fprintf (stdout, "Written by %s and %s.\n", + "Douglas C. Schmidt", "Bruno Haible"); exit (0); case 'W': /* Sets the name for the hash table array */ { |