Skip to content

Coalesced options ending with a value-taking option always fail to parse #4

Description

@wreedb

Given the following definition:

include <string>;

class options
{
    bool --something | -s ;
    bool --verbose | -v ;
    std::string --file | -f ;
};

Parsing the following invocation:

./program -svf file.txt

Will result in the following:

missing value for option '-f'

While the following does work:

./program -sv -f file.txt

From my testing, it appears that coalescing works perfectly unless the final option is value-taking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions