bugGNU Gengetopt - Bugs: bug #36013, Need support for punctuation...

 
 

bug #36013: Need support for punctuation characters in optstring

Submitted by:  None
Submitted on:  Tue 27 Mar 2012 03:04:43 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.

 

Tue 27 Mar 2012 03:04:43 PM UTC, original submission:

I need to implement short options with non-[:alnum:] characters, e.g.,

option "dollar-opt"          $ "Test option char $" optional
option "percent-opt"         % "Test option char %" optional
option "and-opt"             & "Test option char &" optional
option "star-opt"            * "Test option char *" optional

Please patch src/scanner.ll to enable punctuation characters (see attached diff). However, there is still a problem with these optargs:

option "#-opt"               \# "Test option char #" optional # escaping does not work
option "quote-opt"           ' "Test option char '" optional # does not work
option "brace-open-opt"      ( "Test option char (" optional # does not work
option "brace-open-opt"      ) "Test option char )" optional # does not work
option "comma-opt"           , "Test option char ," optional # does not work
option "backslash-opt"       \\ "Test option char \" optional # escaping does not work
option "eq-opt"              = "Test option char =" optional # does not work

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #25474:  scanner.ll.diff added by None (663B - application/octet-stream - scanner.ll diff and test.ggo)
file #25475:  test.ggo added by None (2KiB - application/octet-stream - scanner.ll diff and test.ggo)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

 

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2012-03-27 None Attached File- => Added scanner.ll.diff, #25474
    Attached File- => Added test.ggo, #25475

Back to the top


Powered by Savane 3.4