… or just do it right in the first place

This commit is contained in:
alterNERDtive 2020-01-15 09:19:36 +01:00
parent fad3bd4adb
commit ea0785a639

View file

@ -63,7 +63,7 @@ def getSystemNear(name):
parser = argparse.ArgumentParser(description="A collection of tools useful for "
+ "exploration.")
subparsers = parser.add_subparsers(title="subcommands", help="sub-command help",
dest="subCommand")
dest="subcommand", required=True)
parser_bodycount = subparsers.add_parser("bodycount",
help="Returns the number of bodies in a system. Will exit with code 1 on "
@ -123,9 +123,6 @@ try:
out = getSystemNear(args.system)
elif args.subCommand == "systemlist":
out = getSystemList(args.partialsystem)
else:
parser.print_usage(sys.stderr)
sys.exit(1)
except ServerError as e:
print(e)
sys.exit(1)