Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKitoInc committed Jun 2, 2024
1 parent 3b33160 commit 674889b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import sys


def main():
def main(args):

host = sys.argv[len(sys.argv)-1]
print(args)

device = deviceInit(args.host, args.port, args.timeout,
args.password, args.UDP, not args.ping)

device = deviceInit(host)
if device is None:
return 1

Expand Down

0 comments on commit 674889b

Please sign in to comment.