8000 -h in priority · Issue #253 · docopt/docopt.rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
-h in priority #253
Open
Open
@nilgoyette

Description

@nilgoyette

When calling a binary, some users forget how some arguments work and simply add a -h to see the help again, without removing all parameters.

job a/long/path.gz another/long/path.gz a/long/path/again.gz -h

In some libs, like argparse, this prints the complete help message, as if you used job -h. With docopt-rs, it does print the usage message, but doesn't actually care about the -h. It would print the same thing with a non-existing parameter.

Invalid arguments.

Usage:
    job ...

tl;rd it would be nice to print the whole help message with -h, even if there are other args.

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

      0