Skip to content

parameters with argument should throw error if arment is omitted #66

Open
@sheam

Description

@sheam

If my parameter requires an argument, I would like an error to be thrown if that argument is not supplied.

I tried detecting this in the callback, but the callback never gets called if the argument is not supplied. Essentially it treats it as if the parameter was never supplied.

i.e.,

If the 't' parameter requires a numeric value and should be called like: myapp.exe -t 5, but
myapp.exe -t
is the same as
myapp.exe.

This can lead to some unexpected behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions