zulip_botserver: Enforce that port argument is an int.
This commit is contained in:
parent
5ef224f2a2
commit
70dd05e5a6
|
@ -129,6 +129,7 @@ def parse_args() -> argparse.Namespace:
|
||||||
parser.add_argument('--port',
|
parser.add_argument('--port',
|
||||||
action='store',
|
action='store',
|
||||||
default=5002,
|
default=5002,
|
||||||
|
type=int,
|
||||||
help='Port on which you want to run the server')
|
help='Port on which you want to run the server')
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue