Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #496  -  program_options: Cannot combine short options
Posted Jun 01, 2013 - updated Jun 30, 2013   Shortlink: http://arx.vg/496
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Fixed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Daniel Scharrer
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Arx Libertatis 1.1
Issue description
It should be possible to combine short options as long as only the last one takes an argument.

For example:
  1. $ arx -nd /foo/bar
should be equivalent to
  1. $ arx -n -d /foo/bar


This is common under *nix and was the way arx behaved previously.

For this to work unambiguously, long options with only a single dash should be forbidden:
  1. $ arx -no-data-dir
Steps to reproduce this issue
Nothing entered.