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

Merge pull request #361 from ameer1234567890/patch-1

Fix error if no dst-ip is provided
This commit is contained in:
Matthew Garrett 2020-05-24 12:21:04 -07:00 committed by GitHub
commit ca8a5c6a8b
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...")