Add -m/-M help strings, move --version/-v to stop of argparser

This commit is contained in:
jesopo 2019-02-24 10:45:54 +00:00
parent faa305f2e8
commit 41cc90cb72

View file

@ -11,6 +11,8 @@ directory = os.path.dirname(os.path.realpath(__file__))
arg_parser = argparse.ArgumentParser(
description="Python3 event-driven modular IRC bot")
arg_parser.add_argument("--version", "-v", action="store_true")
arg_parser.add_argument("--config", "-c",
help="Location of the JSON config file",
default=os.path.join(directory, "bot.conf"))
@ -29,10 +31,10 @@ arg_parser.add_argument("--add-server", "-a",
arg_parser.add_argument("--verbose", "-V", action="store_true")
arg_parser.add_argument("--log-level", "-L")
arg_parser.add_argument("--version", "-v", action="store_true")
arg_parser.add_argument("--module", "-m")
arg_parser.add_argument("--module-args", "-M")
arg_parser.add_argument("--module", "-m",
help="Execute an action against a specific module")
arg_parser.add_argument("--module-args", "-M",
help="Arguments to give in action against a specific module")
args = arg_parser.parse_args()