Fix console tool

This commit is contained in:
Robert Miles 2018-06-25 18:04:14 -04:00
parent 6030215c03
commit 4e092576f5
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ OPERATIONS = {"new": cli_new}
# To be specific, this function parses the arguments and delegates to seperate functions for the operations.
def main(gargs=None):
if gargs is None:
gargs = sys.argv
gargs = sys.argv[1:]
parser = argparse.ArgumentParser(prog="teambot",description="A tool for making IRC bots with teambot.")
parser.add_argument("operation",help="The operation to do. Valid operations: {}".format(", ".join(x for x in OPERATIONS.keys())))
parser.add_argument("args",nargs="*")