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:
commit
ca8a5c6a8b
@ -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...")
|
||||||
|
Loading…
Reference in New Issue
Block a user