diff options
| author | 2019-02-24 10:45:54 +0000 | |
|---|---|---|
| committer | 2019-02-24 10:45:54 +0000 | |
| commit | 41cc90cb72bbf0ad42ce40b0b8df90585deab00f (patch) | |
| tree | f58725de2a84647d063b3af0ef742d7f0d3efd32 | |
| parent | Add -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-x | start.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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() |
