Mon 26 Sep 2011 09:43:32 PM UTC, original submission:
Compare with GNU utilities, e.g.
$ grep --version
GNU grep 2.6.3
Copyright (C) 2009 Free Software Foundation, Inc.
Licence GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Actually, the gengetopt manual says:
When `--version|-V' is passed, it will call
cmdline_parser_print_version() and then prints a copyright.
but this appears to be false, as the generated code says:
case 'V': /* Print version and exit. */
cmdline_parser_print_version ();
cmdline_parser_free (&local_args_info);
exit (EXIT_SUCCESS);
and nowhere does the manual explain how to specify a copyright message. Looking at the sources for gengetopt itself, it seems that it defines its own copyright-printing code which is not included in generated code.
Maybe I'm missing something here?
|