Parse port argument as int
This commit is contained in:
@@ -10,7 +10,7 @@ def main():
|
||||
parser = argparse.ArgumentParser(description='HTTP Client')
|
||||
parser.add_argument("--verbose", "-v", action='count', default=0, help="Increase verbosity level of logging")
|
||||
parser.add_argument("--command", "-c", help="HEAD, GET, PUT or POST", default="GET")
|
||||
parser.add_argument("--port", "-p", help="The port used to connect with the server", default=80)
|
||||
parser.add_argument("--port", "-p", help="The port used to connect with the server", default=80, type=int)
|
||||
parser.add_argument("URI", help="The URI to connect to")
|
||||
|
||||
arguments = parser.parse_args()
|
||||
|
Reference in New Issue
Block a user