COIN-OR::LEMON - Graph Library

Opened 10 years ago

Last modified 10 years ago

#139 assigned enhancement

Support short and long style parameters in ArgParser

Reported by: alpar Owned by: alpar
Priority: minor Milestone:
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

This is a follow-up of ticket:104.

I would propose a member function like void style(StyleEnum st), where the parameter st would choose from the following options:

  • Short style, where the form of the parameters are
    -param value
    
  • Long style, where the form of the parameters are
    -param=value
    
  • Mixed style, where options starting with one dash use the short form while those starting with two use the long style.

With this approach, one can implement POSIX compliant parameters.

Change History (3)

comment:1 Changed 10 years ago by alpar

  • Status changed from new to assigned

comment:2 Changed 10 years ago by alpar

comment:3 Changed 10 years ago by alpar

  • Milestone LEMON 1.1 release deleted
Note: See TracTickets for help on using tickets.