-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/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
>poetry --verison
Stack trace:
11 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\console_application.py:123 in run
io = io_factory(
10 AppData\Roaming\pypoetry\venv\Lib\site-packages\poetry\console\config\application_config.py:221 in create_io
resolved_command = application.resolve_command(args)
9 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\console_application.py:110 in resolve_command
return self._config.command_resolver.resolve(args, self)
8 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\resolver\default_resolver.py:43 in resolve
result = self.process_default_commands(args, application.default_commands)
7 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\resolver\default_resolver.py:104 in process_default_commands
if resolved_command.is_parsable():
6 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\resolver\resolve_result.py:43 in is_parsable
self._parse()
5 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\resolver\resolve_result.py:49 in _parse
self._parsed_args = self._command.parse(self._raw_args)
4 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\api\command\command.py:113 in parse
return self._config.args_parser.parse(args, self._args_format, lenient)
3 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\args\default_args_parser.py:53 in parse
self._parse(args, _fmt, lenient)
2 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\args\default_args_parser.py:101 in _parse
self._parse_long_option(token, tokens, fmt, lenient)
1 AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\args\default_args_parser.py:247 in _parse_long_option
self._add_long_option(name, None, tokens, fmt, lenient)
NoSuchOptionException
The "--verison" option does not exist.
at AppData\Roaming\pypoetry\venv\Lib\site-packages\clikit\args\default_args_parser.py:300 in _add_long_option
296│ def _add_long_option(
297│ self, name, value, tokens, fmt, lenient
298│ ): # type: (str, Optional[str], List[str], ArgsFormat, bool) -> None
299│ if not fmt.has_option(name):
→ 300│ raise NoSuchOptionException(name)
301│
302│ option = fmt.get_option(name)
303│
304│ if value is False:
This output is detrimental to a comfortable user experience, stack trace and source code reference because I made a type in the argument? All this debug information hides the relevant parts of the output.
In my opinion this info should only be shown when verbose mode is enabled.
Expected result:
>poetry --verison
The "--verison" option does not exist.
Did you mean this?
--version
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureFeature requests/implementationsFeature requests/implementations