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

 
 

bug #36013: Need support for punctuation characters in optstring

Submitter:  None
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

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.13-f8d8.
Corresponding source code