Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.6 changed behavior with unknown arguments #29

Open
DannyBen opened this issue Apr 7, 2017 · 5 comments
Open

Version 0.6 changed behavior with unknown arguments #29

DannyBen opened this issue Apr 7, 2017 · 5 comments

Comments

@DannyBen
Copy link

DannyBen commented Apr 7, 2017

Although I am happy to see a new 0..6 version, it introduces what I assume is an unintended behavior.

With the previous 0.5 version, when running the command with an unrecognized argument, docopt would output something like:

--param_name is unrecognized
Usage
  ...

With the new version, it does not output the error line, only the usage.

I see the last merge removed this line from a couple of places

raise tokens.error, "#{raw} is not recognized"
DannyBen added a commit to DannyBen/madness that referenced this issue Apr 7, 2017
@alexspeller
Copy link
Collaborator

Ah right, that's not intended - I guess that part is not covered in the tests

@alexspeller
Copy link
Collaborator

@ryanartecona were those errors removed intentionally?

@ryanartecona
Copy link
Member

ryanartecona commented Apr 8, 2017 via email

@DannyBen
Copy link
Author

Any chance of bringing it back to the original behavior soon (as in 0.6.1)?

@DannyBen
Copy link
Author

Ahm.... bump?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants