Fixed help message

This commit is contained in:
Shy 2017-04-10 15:47:24 +02:00
parent ad5102f334
commit 4566efae3f

View file

@ -1189,9 +1189,10 @@ if __name__ == "__main__":
# Switch control # Switch control
group_sw = parser.add_argument_group(title="light switch control", group_sw = parser.add_argument_group(title="light switch control",
description="BINARY_CODE is a string of 0s or 1s for every light in the \ description="BINARY_CODE is a string of 0s or 1s for every light in a \
room. Accepts decimals also. May be prepended by '&' or '^' as AND or \ room. May be given as decimal. May be prepended by '&' or '|' as AND \
OR operators. Will show some information and ask for input if omitted.") or OR operators. Will show usage information and ask for input if \
omitted.")
group_sw.add_argument( group_sw.add_argument(
"-W", nargs='?', dest="w_switch", const="", metavar="BINARY_CODE", "-W", nargs='?', dest="w_switch", const="", metavar="BINARY_CODE",
help="switch lights in Wohnzimmer on/off") help="switch lights in Wohnzimmer on/off")