Skip to content

Commit

Permalink
Update make.py (#804)
Browse files Browse the repository at this point in the history
* Update make.py
delete unneeded print()
  • Loading branch information
gran4 committed Apr 19, 2023
1 parent 679efd6 commit dede7b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def dist():

def _print_usage():
print('Usage:', op.basename(sys.argv[0]), '<command>')
print(' where commands are:', ', '.join(avail_cmds))
print()
print(' where commands are:', ', '.join(avail_cmds), "\n")
for name, cmd in avail_cmds.items():
print(name, '\t', cmd.__doc__)

Expand All @@ -68,8 +67,7 @@ def _print_usage():
# Invalid number of arguments, just print help
_print_usage()
except KeyError:
print('Unknown command:', sys.argv[1])
print()
print(f"Unknown command: {sys.argv[1]}\n")
_print_usage()
else:
command()

0 comments on commit dede7b0

Please sign in to comment.