COIN-OR::LEMON - Graph Library

Opened 16 years ago

Last modified 16 years ago

#139 assigned enhancement

Support short and long style parameters in ArgParser

Reported by: Alpar Juttner Owned by: Alpar Juttner
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 16 years ago by Alpar Juttner

Status: newassigned

comment:2 Changed 16 years ago by Alpar Juttner

comment:3 Changed 16 years ago by Alpar Juttner

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