We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f883c30 commit a9b558cCopy full SHA for a9b558c
src/elapi/cli/elapi.py
@@ -52,7 +52,7 @@ def cli_startup(
52
] = "{}",
53
) -> type(None):
54
import click
55
- from sys import orig_argv
+ from sys import argv
56
import json
57
from ..styles import print_typer_error, NoteText
58
from ..configuration import (
@@ -113,10 +113,7 @@ def cli_startup(
113
not in COMMANDS_TO_SKIP_CLI_STARTUP
114
and ctx.command.name != calling_sub_command_name
115
):
116
- if (
117
- orig_argv[-1] != (ARG_TO_SKIP := "--help")
118
- or ARG_TO_SKIP not in orig_argv
119
- ):
+ if argv[-1] != (ARG_TO_SKIP := "--help") or ARG_TO_SKIP not in argv:
120
if override_config or not MainConfigurationValidator.ALREADY_VALIDATED:
121
_validate = Validate(MainConfigurationValidator())
122
try:
0 commit comments