Skip to content

The example code does not work as expected. #8

@PeterMitrano

Description

@PeterMitrano

The example in the read me does not work, which is no surprise because I don't see how any code to convert strings to number types.

Input:

./a.out --cactus=10

Expected output:

program exits with code 10

Observed output:

terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast
Aborted (core dumped)

I normally would just move and and assume the project was broken, but it's the first result on google when you search "argparse C++", so I feel like it should be maintained and work as expected.

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