Skip to content

Support option name aliases / multiple long options #240

Closed
@eyalroz

Description

@eyalroz

(This is a feature I added to boost::program_options a couple of years back.)

Right now, if you name an option "x,long-name-of-x,another-long-name-of-x" - you get an error:

terminate called after throwing an instance of 'cxxopts::invalid_option_format_error'
  what():  Invalid option format 'x,long-name-of-x,another-long-name-of-x'

instead, cxxopts should support having multiple aliases for the (first and primary) name of the option - all of which would be accepted on the command-line just as though the primary name were used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions