Skip to content

Commit

Permalink
Fixed broken interactive completers with positional arguments (#6174)
Browse files Browse the repository at this point in the history
  • Loading branch information
williexu authored Apr 23, 2018
1 parent 6fc6098 commit a59fb9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-interactive/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.3.20
++++++
* Allow interactive completers to function with positional arguments.

0.3.19
++++++
* Stops completions upon unrecognized commands.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def dump_command_table(self, shell_ctx=None):
'help': cmd.arguments[key].type.settings.get('help') or ''
}
# the key is the first alias option
parameter_metadata[cmd.arguments[key].options_list[0]] = options
if cmd.arguments[key].options_list:
parameter_metadata[cmd.arguments[key].options_list[0]] = options

cmd_table_data[command_name] = {
'parameters': parameter_metadata,
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-interactive/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
cmdclass = {}

# Version is also defined in azclishell.__init__.py.
VERSION = "0.3.19"
VERSION = "0.3.20"
# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
Expand Down

0 comments on commit a59fb9b

Please sign in to comment.