citty icon indicating copy to clipboard operation
citty copied to clipboard

Warn for unknown options

Open kricsleo opened this issue 8 months ago • 0 comments

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

  • [x] Would you be willing to help implement this feature?

kricsleo avatar Apr 18 '25 08:04 kricsleo