-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/error-handlingBad error messages/insufficient error handlingBad error messages/insufficient error handlingkind/featureFeature requests/implementationsFeature requests/implementations
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
Here is the prompt after I entered an incorrect option
Stack trace:
11 /usr/lib/python3/dist-packages/clikit/console_application.py:123 in run
io = io_factory(
... some stack traces omitted
1 /usr/lib/python3/dist-packages/clikit/args/default_args_parser.py:272 in _parse_short_option
self._add_short_option(name, None, tokens, fmt, lenient)
NoSuchOptionException
The "-f" option does not exist.
at /usr/lib/python3/dist-packages/clikit/args/default_args_parser.py:349 in _add_short_option
345│ def _add_short_option(
346│ self, name, value, tokens, fmt, lenient
347│ ): # type: (str, Optional[str], List[str], ArgsFormat, bool) -> None
348│ if not fmt.has_option(name):
→ 349│ raise NoSuchOptionException(name)
350│
351│ self._add_long_option(
352│ fmt.get_option(name).long_name, value, tokens, fmt, lenient
353│ )
At the moment I have to scroll up to find out what I did wrong.
I wish there is an option or configuration make Poetry had just left the "-f" option does not exist. as a clear reminder of what I was doing wrong.
I am not a native English speaker and may not be able to use exact words and phrases to search for issues, Sorry if this issue is duplicated.
I have reading the following sections of the documentation but did not find an option that would be helpful for my needs.
Did I miss something? Any help would be appreciated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/error-handlingBad error messages/insufficient error handlingBad error messages/insufficient error handlingkind/featureFeature requests/implementationsFeature requests/implementations