cppassist icon indicating copy to clipboard operation
cppassist copied to clipboard

Review cmdline module

Open scheibel opened this issue 6 years ago • 2 comments

  • Remove ArgumentParser.
  • Provide interface on CommandLineProgram to query the remaining arguments (in case no actions, switches, options or parameters are registered, this would return all arguments)
  • Allow for nesting actions (presumably merge action and program or subclass program from action)

scheibel avatar Aug 31 '18 08:08 scheibel

can you please provide some background on the reasoning and potential benefits of your suggestions.

cgcostume avatar Oct 23 '18 04:10 cgcostume

The background was an internal discussion with @sbusch42. We reviewed the currently two existing implementations to parse arguments from the command line (namely ArgumentParser and CommandLineProgram) and decided to merge their implementations.

scheibel avatar Oct 23 '18 07:10 scheibel