Skip to content

Commit

Permalink
Fix dispatch with no arguments in bazelisk.py (bazelbuild#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
asford authored Sep 3, 2020
1 parent bd0d87d commit 92d53ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazelisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def main(argv=None):

argv = argv[1:]

if argv[0] == "--print_env":
if argv and argv[0] == "--print_env":
cmd = make_bazel_cmd(bazel_path, argv)
env = cmd['env']
for key in env:
Expand Down

0 comments on commit 92d53ac

Please sign in to comment.