Jaymon / captain

command line python scripts for humans
MIT License
13 stars 1 forks source link

Parsing unknown args error needs to include the original flags #83

Closed Jaymon closed 3 months ago

Jaymon commented 3 months ago

Right now it includes the parsed flag key and value, so if you passed in an arg string like:

--foo=1

And it failed, the error raised would look like:

error: unrecognized arguments: foo 1

Instead of the "makes more sense" version:

error: unrecognized arguments: --foo=1