Skip to content
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

Bugfix: include aliases for first argument #4262

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion conda/cli/main.py
Expand Up @@ -132,7 +132,7 @@ def completer(prefix, **kwargs):
# when using sys.argv, first argument is generally conda or __main__.py. Ignore it.
if (any(sname in args[0] for sname in ('conda', 'conda.exe',
'__main__.py', 'conda-script.py')) and
(args[1] in main_modules + find_commands() or args[1].startswith('-'))):
(args[1] in list(sub_parsers.choices.keys()) + find_commands() or args[1].startswith('-'))):
log.debug("Ignoring first argument (%s), as it is not a subcommand", args[0])
args = args[1:]

Expand Down