Skip to content

Commit

Permalink
fix -v option when no command is provided
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Aug 10, 2019
1 parent dd8620a commit 65a2726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/aca-py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ if ENABLE_PTVSD or "--debug" in sys.argv:

from aries_cloudagent.commands import run_command # noqa

if len(sys.argv) > 1:
if len(sys.argv) > 1 and sys.argv[1] and sys.argv[1][0] != "-":
command = sys.argv[1]
args = sys.argv[2:]
else:
command = None
args = []
args = sys.argv[1:]

run_command(command, args)

0 comments on commit 65a2726

Please sign in to comment.