bugGNU Gengetopt - Bugs: bug #34392, Incorrectly named option

 
 

bug #34392: Incorrectly named option

Submitted by:  Reuben Thomas <rrt>
Submitted on:  Mon 26 Sep 2011 08:29:42 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun 02 Oct 2011 07:37:55 PM UTC, comment #3:

Sorry, you're quite right; updated patch attached.

(file #24084)

Reuben Thomas <rrt>
Sun 02 Oct 2011 10:10:47 AM UTC, comment #2:

I think you made a small mistake concerning 'synonym"

option "unamed-opts" u "accept options without names (e.g., file names)" string default="FILES" optional argoptional
option "unnamed-opts" - "synonym for --unnamed-opts, accepted for backwards compatibility" string default="FILES" optional argoptional hidden

it should be the other way round: the old unamed-opts should be hidden and synonym (and 'u' be the short option for the new --unnamed), am I right?

Lorenzo Bettini <bettini>
Project Administrator
Sat 01 Oct 2011 06:33:43 PM UTC, comment #1:

I attach a patch to make this change.

(file #24069)

Reuben Thomas <rrt>
Mon 26 Sep 2011 08:29:42 PM UTC, original submission:

--unamed-opts should be --unnamed-opts (two n's).

I guess you will want to add the correct spelling and retain the wrong spelling as an undocumented synonym for backwards compatibility.

Reuben Thomas <rrt>

 

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

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bettini (Updated the item)
  • -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
    Sun 02 Oct 2011 07:37:55 PM UTCrrtAttached File-=>Added 0002-options-rename-unamed-opts-to-unnamed-opts-keeping-o.patch, #24084
    Sat 01 Oct 2011 06:33:43 PM UTCrrtAttached File-=>Added 0002-options-rename-unamed-opts-to-unnamed-opts-keeping-o.patch, #24069
    Wed 28 Sep 2011 09:04:06 AM UTCbettiniStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup