feat(nav): print usage when called without arguments
This commit is contained in:
parent
f89276f39f
commit
d0aed8fcfb
1 changed files with 2 additions and 0 deletions
2
nav.py
2
nav.py
|
|
@ -74,6 +74,8 @@ def print_plan(destination):
|
|||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 2:
|
||||
sys.exit(__doc__)
|
||||
if sys.argv[1] == "--list":
|
||||
for key in sorted(ROUTES):
|
||||
print(f"{key:12} {NAMES[key]}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue