update usage

This commit is contained in:
Denis Lehmann 2021-04-21 22:00:51 +02:00
parent 0bd290a085
commit 9806719e8c
2 changed files with 12 additions and 8 deletions

View file

@ -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
<PROFILE> - 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

View file

@ -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 <PROFILE> - 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 <PROFILE> - 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