Skip to content

Warn for unknown options #201

@kricsleo

Description

@kricsleo

Describe the feature

Warn for unknown options could improve CLI usability and user experience.

For example, git (and others) warns about unknown options:

$ git -k
> unknown option: -k
> usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
>            [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
>            [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch]
>            [--no-optional-locks] [--no-advice] [--bare] [--git-dir=<path>]
>            [--work-tree=<path>] [--namespace=<name>] [--config-env=<name>=<envvar>]
>            <command> [<args>]

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions