import argparse
my_parser = argparse.ArgumentParser()
my_parser.add_argument('-i', action='store', type=str, required=True)
my_parser.add_argument('-p', action='store', type=int, required=True)
args = my_parser.parse_args()
print('Ip arg type: {}, value: {}'.format(type(args.i), args.i))
print('Port arg type: {}, value: {}'.format(type(args.p), args.p))

c007cdd54d73c9374f4c0da22912b91da80e1dfa
<mask token>

<mask token>
my_parser.add_argument('-i', action='store', type=str, required=True)
my_parser.add_argument('-p', action='store', type=int, required=True)
<mask token>
print('Ip arg type: {}, value: {}'.format(type(args.i), args.i))
print('Port arg type: {}, value: {}'.format(type(args.p), args.p))

<mask token>
my_parser = argparse.ArgumentParser()
my_parser.add_argument('-i', action='store', type=str, required=True)
my_parser.add_argument('-p', action='store', type=int, required=True)
args = my_parser.parse_args()
print('Ip arg type: {}, value: {}'.format(type(args.i), args.i))
print('Port arg type: {}, value: {}'.format(type(args.p), args.p))

import argparse
my_parser = argparse.ArgumentParser()
my_parser.add_argument('-i', action='store', type=str, required=True)
my_parser.add_argument('-p', action='store', type=int, required=True)
args = my_parser.parse_args()
print('Ip arg type: {}, value: {}'.format(type(args.i), args.i))
print('Port arg type: {}, value: {}'.format(type(args.p), args.p))
