update usage
This commit is contained in:
parent
0bd290a085
commit
9806719e8c
2 changed files with 12 additions and 8 deletions
12
README.org
12
README.org
|
|
@ -59,19 +59,19 @@
|
||||||
Set color profiles of your Razer devices.
|
Set color profiles of your Razer devices.
|
||||||
|
|
||||||
positional arguments:
|
positional arguments:
|
||||||
COMMAND One of the following:
|
COMMAND one of the following:
|
||||||
list-devices - list devices (default)
|
list-devices - list available devices
|
||||||
list-lightmaps - list lightmaps
|
list-lightmaps - list available lightmaps
|
||||||
list-profiles - list available profiles
|
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
|
<PROFILE> - apply the given profile
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
-ld LIGHTMAP_DIRECTORY, --lightmap-directory LIGHTMAP_DIRECTORY
|
-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
|
-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
|
#+end_src
|
||||||
|
|
||||||
** Configuration
|
** Configuration
|
||||||
|
|
|
||||||
8
bin/rzr
8
bin/rzr
|
|
@ -198,8 +198,8 @@ if __name__ == "__main__":
|
||||||
"command",
|
"command",
|
||||||
metavar="COMMAND",
|
metavar="COMMAND",
|
||||||
nargs="?",
|
nargs="?",
|
||||||
default="list-devices",
|
default=None,
|
||||||
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",
|
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(
|
parser.add_argument(
|
||||||
"-ld",
|
"-ld",
|
||||||
|
|
@ -215,6 +215,10 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if not args.command:
|
||||||
|
parser.print_help()
|
||||||
|
exit(0)
|
||||||
|
|
||||||
# Check if directories exist
|
# Check if directories exist
|
||||||
directories_available = True
|
directories_available = True
|
||||||
lightmap_directory = args.lightmap_directory
|
lightmap_directory = args.lightmap_directory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue