1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-22 07:00:12 +01:00

Fix error if no dst-ip is provided

This commit is contained in:
Ameer Dawood 2020-05-09 22:35:51 +05:00 committed by GitHub
parent a731c9c5a5
commit 47999a9b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import broadlink
parser = argparse.ArgumentParser(fromfile_prefix_chars='@') 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("--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("--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() args = parser.parse_args()
print("Discovering...") print("Discovering...")