Skip to content

Warn for unknown options #201

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

Open
1 task done
kricsleo opened this issue Apr 18, 2025 · 0 comments · May be fixed by #202
Open
1 task done

Warn for unknown options #201

kricsleo opened this issue Apr 18, 2025 · 0 comments · May be fixed by #202
Labels
enhancement New feature or request

Comments

@kricsleo
Copy link
Member

kricsleo commented Apr 18, 2025

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?
@kricsleo kricsleo added the enhancement New feature or request label Apr 18, 2025
@kricsleo kricsleo linked a pull request Apr 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant