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

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