bugGNU Gengetopt - Bugs: bug #34401, Version line should contain...

 
 

bug #34401: Version line should contain copyright notice

Submitted by:  Reuben Thomas <rrt>
Submitted on:  Mon 26 Sep 2011 09:43:32 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Tim Marston <edam>
Originator Name: Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 17 Jul 2012 05:20:44 PM UTC, comment #2:

Thanks very much for this improvement!

Reuben Thomas <rrt>
Tue 17 Jul 2012 04:38:29 PM UTC, comment #1:

This is fixed by the addition of a new "versiontext" directive.

See this git commit and, more specifically, these changes to the documentation.

Tim Marston <edam>
Project MemberIn charge of this item.
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?

Reuben Thomas <rrt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by edam (Posted a comment)
  • -unavailable- added by rrt (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 17 Jul 2012 04:38:29 PM UTCedamStatusNone=>Fixed
      Assigned toNone=>edam
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1