diff --git a/app.py b/app.py index 7016153..d1106a5 100644 --- a/app.py +++ b/app.py @@ -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