From 06f4ecece55aaca1aff66700d8361131f7a6a80f Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 22 Mar 2019 01:29:49 +0300 Subject: [PATCH] fix typos --- winping/__main__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/winping/__main__.py b/winping/__main__.py index 145b311..73fc248 100644 --- a/winping/__main__.py +++ b/winping/__main__.py @@ -42,7 +42,7 @@ def check_size(value): dest="timeout", default=1000) parser.add_argument("-l", - help="timeout in seconds to wait for each reply", + help="number of data bytes to be sent", type=check_size, dest="size", default=32) @@ -68,7 +68,6 @@ def check_size(value): dest="force_ipv6", action="store_true") - args = parser.parse_args() return args @@ -83,7 +82,7 @@ def main(): print("Ping request could not find host %s. " "Please check the name and try again." % (args.address), file=sys.stderr) - exit(3) + sys.exit(3) ip = ai_list[0][4][0] af = ai_list[0][0] ping_fun, Handle = ((ping, IcmpHandle) if af == socket.AF_INET