From 9720e116301d4a73f99f8ef556020524b0a344d9 Mon Sep 17 00:00:00 2001 From: actionless Date: Wed, 19 Jun 2024 03:46:08 +0200 Subject: [PATCH] doc(multi-export-cli): mention it in the docs --- README.md | 17 +++++++++++++++++ oomox_gui/multi_export_cli.py | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf62b5ea..a242c1ab 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,23 @@ If your prefer CLI interface, refer to `change_color.sh` scripts inside `./plugi +#### Multi-Export CLI + + +```sh +themix-multi-export --help +``` + +or + +```sh +./multi_export_cli.sh --help +``` + +Example multi-export config file could be found in `./export_config_examples` directory of this git repository. + + + #### Spotify: Spotify theme can be also exported from GUI, but if you prefer commandline interface: diff --git a/oomox_gui/multi_export_cli.py b/oomox_gui/multi_export_cli.py index 5d3cf67d..1e84159c 100644 --- a/oomox_gui/multi_export_cli.py +++ b/oomox_gui/multi_export_cli.py @@ -30,7 +30,10 @@ def print_help() -> None: def main() -> None: - if len(sys.argv) < (NUM_ARGS + 1): + if ( + ((len(sys.argv) >= (1 + 1)) and sys.argv[1] in {"-h", "--help"}) + or (len(sys.argv) < (NUM_ARGS + 1)) + ): print_help() sys.exit(1)