Skip to content

Commit

Permalink
Minor fix in _rudimentary_get_command (Azure#6200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Wong authored and tjprescott committed Apr 24, 2018
1 parent e6a56f7 commit 227fb22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/azure-cli-core/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Release History
* Improves piping scenarios from commands when using `--ids`. Supports `-o tsv` with a query specified or `-o json`
without specifying a query.
* Display command suggestions on error if users have typo in their commands
* More friendly error when users type `az ''`

2.0.31
++++++
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _rudimentary_get_command(self, args): # pylint: disable=no-self-use
nouns = []
command_names = self.commands_loader.command_table.keys()
for arg in args:
if arg[0] != '-':
if arg and arg[0] != '-':
nouns.append(arg)
else:
break
Expand Down

0 comments on commit 227fb22

Please sign in to comment.