Fix console tool
This commit is contained in:
parent
6030215c03
commit
4e092576f5
|
@ -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="*")
|
||||
|
|
Reference in New Issue