Skip to content

Error message may confuse users #2

Description

@DarkElvenAngel

I may have found a bug, when you have a short argument that takes a value and you don't put a space between it and the value and you then have another argument that needs to take a value the error generated isn't correct.

$./a.out -l6
error: missing argument for 'l' in -l6
$./a.out -Fl6 --long 10
error: cannot parse '--long' as an integer

I see what is happening the parser is trying to convert '--long' to an int and that's not working. Is there a way to parse the value in this way or would it be possible to generate the error missing argument message rather that the cannot parse message?

I'm trying to replace argp and this project is spot on for my needs

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