From 41cc90cb72bbf0ad42ce40b0b8df90585deab00f Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 24 Feb 2019 10:45:54 +0000 Subject: [PATCH] Add -m/-M help strings, move --version/-v to stop of argparser --- start.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/start.py b/start.py index 18793299..303d9451 100755 --- a/start.py +++ b/start.py @@ -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()