Skip to content

Version 0.6 changed behavior with unknown arguments #29

Open
@DannyBen

Description

@DannyBen

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions