aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-24 10:45:54 +0000
committerGravatar jesopo2019-02-24 10:45:54 +0000
commit41cc90cb72bbf0ad42ce40b0b8df90585deab00f (patch)
treef58725de2a84647d063b3af0ef742d7f0d3efd32
parentAdd -m/-M args to ./start.py that call `command_line` on individual modules (diff)
signature
Add -m/-M help strings, move --version/-v to stop of argparser
-rwxr-xr-xstart.py10
1 files 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()