[Boost-bugs] [Boost C++ Libraries] #8588: program_options eats parameter instead of reporting previous one missing an argument

Subject: [Boost-bugs] [Boost C++ Libraries] #8588: program_options eats parameter instead of reporting previous one missing an argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-18 22:03:05


#8588: program_options eats parameter instead of reporting previous one missing an
argument
--------------------------------------------------+-------------------------
 Reporter: Adam Nielsen <a.nielsen@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 If a parameter is specified with a mandatory argument, but the argument is
 omitted, the following parameter is used as the argument instead. For
 example:

 {{{
   ./test --dump-firmware
   Invalid command line syntax: the required argument for option '--
 firmware' is missing. Use --help for help.
   ./test --dump-firmware --help
   dumping firmware to file: --help
 }}}

 Here, --dump-firmware requires an argument, and "--help" is passed in as
 the argument. Instead, "--help" should be treated as a parameter (either
 valid or not) and --dump-firmware should report a missing parameter
 instead.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8588>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC