diff --git a/README.org b/README.org index cc6003e..d4f7b39 100644 --- a/README.org +++ b/README.org @@ -59,19 +59,19 @@ Set color profiles of your Razer devices. positional arguments: - COMMAND One of the following: - list-devices - list devices (default) - list-lightmaps - list lightmaps + COMMAND one of the following: + list-devices - list available devices + list-lightmaps - list available lightmaps list-profiles - list available profiles - iterate-lights - iterate lights of all devices + iterate-lights - iterate though all lights of all devices - apply the given profile optional arguments: -h, --help show this help message and exit -ld LIGHTMAP_DIRECTORY, --lightmap-directory LIGHTMAP_DIRECTORY - Path to directory with lightmaps (default: ~/.config/rzr/lightmaps) + path to directory with lightmaps (default: ~/.config/rzr/lightmaps) -pd PROFILE_DIRECTORY, --profile-directory PROFILE_DIRECTORY - Path to directory with profiles (default: ~/.config/rzr/profiles) + path to directory with profiles (default: ~/.config/rzr/profiles) #+end_src ** Configuration diff --git a/bin/rzr b/bin/rzr index 1c3f7ed..a25ea54 100644 --- a/bin/rzr +++ b/bin/rzr @@ -198,8 +198,8 @@ if __name__ == "__main__": "command", metavar="COMMAND", nargs="?", - default="list-devices", - help="one of the following:\n list-devices - list available devices (default)\n list-lightmaps - list available lightmaps\n list-profiles - list available profiles\n iterate-lights - iterate though all lights of all devices\n - apply the given profile", + default=None, + help="one of the following:\n list-devices - list available devices\n list-lightmaps - list available lightmaps\n list-profiles - list available profiles\n iterate-lights - iterate though all lights of all devices\n - apply the given profile", ) parser.add_argument( "-ld", @@ -215,6 +215,10 @@ if __name__ == "__main__": ) args = parser.parse_args() + if not args.command: + parser.print_help() + exit(0) + # Check if directories exist directories_available = True lightmap_directory = args.lightmap_directory