mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-21 22:51:41 +01:00
Fix error if no dst-ip is provided
This commit is contained in:
parent
a731c9c5a5
commit
47999a9b67
@ -7,7 +7,7 @@ import broadlink
|
||||
parser = argparse.ArgumentParser(fromfile_prefix_chars='@')
|
||||
parser.add_argument("--timeout", type=int, default=5, help="timeout to wait for receiving discovery responses")
|
||||
parser.add_argument("--ip", default=None, help="ip address to use in the discovery")
|
||||
parser.add_argument("--dst-ip", default=None, help="destination ip address to use in the discovery")
|
||||
parser.add_argument("--dst-ip", default="255.255.255.255", help="destination ip address to use in the discovery")
|
||||
args = parser.parse_args()
|
||||
|
||||
print("Discovering...")
|
||||
|
Loading…
Reference in New Issue
Block a user