Fix typo for shell_completion
Closes-Bug: #2081983 Change-Id: I0f31c61a925c6bb0b424d7c79f058932f6025199
This commit is contained in:
parent
e22503cb39
commit
5e955cf9e2
@ -2179,7 +2179,7 @@ class ConfigOpts(abc.Mapping):
|
|||||||
# the --shell_completion option
|
# the --shell_completion option
|
||||||
argv = args if args is not None else sys.argv[1:]
|
argv = args if args is not None else sys.argv[1:]
|
||||||
if len(argv) > 1 and argv[0] == '--shell_completion' \
|
if len(argv) > 1 and argv[0] == '--shell_completion' \
|
||||||
and args[1] in self.supported_shell_completion:
|
and argv[1] in self.supported_shell_completion:
|
||||||
shell = argv[1]
|
shell = argv[1]
|
||||||
self._print_shell_completion(shell)
|
self._print_shell_completion(shell)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user