Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #495  -  program_options: Unhelpful error messages for command-line options
Posted Jun 01, 2013 - updated Jun 30, 2013   Shortlink: http://arx.vg/495
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
    User interface
  • 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
Error messages for invalid command-line options are not very helpful.

At the very least, the error message should include which argument is wrong.
Steps to reproduce this issue
  1. $./arx --foobar --no-data-dir -u
  2. Error parsing command-line: command not found


  1. $ ./arx --no-data-dir -u
  2. Error parsing command-line: invalid arguments count