add some help texts

This commit is contained in:
Franzi 2023-08-07 14:46:22 +02:00
parent 4a10c73ab7
commit bb2ce5c8f4
Signed by: kunsi
GPG key ID: 12E3D2136B818350

30
main.py
View file

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