From bb2ce5c8f4e3e3a9df4a860d5560d562e13471ec Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 7 Aug 2023 14:46:22 +0200 Subject: [PATCH] add some help texts --- main.py | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 3dbaa81..382c5aa 100755 --- a/main.py +++ b/main.py @@ -49,17 +49,35 @@ def main(): parser.add_argument('--mqtt-port', type=int, default=1883) parser.add_argument('--mqtt-user') parser.add_argument('--mqtt-pass', '--mqtt-password') - parser.add_argument('--mqtt-topic', default='/voc/alert') + parser.add_argument( + '--mqtt-topic', + default='/voc/alert', + help='mqtt topic to listen on, default /voc/alert', + ) # sACN sacn = parser.add_mutually_exclusive_group(required=True) - sacn.add_argument('--sacn-multicast', action='store_true') - sacn.add_argument('--sacn-target') + sacn.add_argument( + '--sacn-multicast', action='store_true', help='use sACN multicast' + ) + sacn.add_argument('--sacn-target', help='send sACN unicast to specified address') # Lights - parser.add_argument('--ignition-wal-l710', nargs='+', type=int) - parser.add_argument('--varytec-wash-zoom-712', nargs='+', type=int) - parser.add_argument('--wled', nargs='+', type=int) + parser.add_argument( + '--ignition-wal-l710', + nargs='+', + type=int, + help='dmx start addresses of Ignition WAL-L710', + ) + parser.add_argument( + '--varytec-wash-zoom-712', + nargs='+', + type=int, + help='dmx start addresses of Varytec Hero Wash 712 Z', + ) + parser.add_argument( + '--wled', nargs='+', type=int, help='dmx start addresses of WLED receivers' + ) args = parser.parse_args()