bugGNU Gengetopt - Bugs: bug #34398, Cannot insert text immediately...


bug #34398: Cannot insert text immediately after usage if usage automatically generated

Submitted by:  Reuben Thomas <rrt>
Submitted on:  Mon 26 Sep 2011 09:09:49 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 26 Sep 2011 09:09:49 PM UTC, original submission:  

If I do not give a "usage" line, then my first "text" line is placed after the help for --help and --version, even though it occurs before all the options. This is counter-intuitive!

However, since my text line occurs directly after "purpose", it would be more logical to put it there.

It seems to me two things are needed:

1. Automatically-generated options text should logically be attached to the first "option" line, so that any "text" lines before that are displayed before the first option. I don't know if there are any other keywords that need similar treatment.

2. It should be possible to indicate an optional keyword without defining it, for the purposes of placing text near it. In this case:

text "Foo"

should generate the default text for usage; the position of "usage" indicates that the following text line should come after the usage.

Reuben Thomas <rrt>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rrt (Submitted the item)

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

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5