Skip to content

Commit

Permalink
CLI: Parse port argument to int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Daljord Morken committed Jun 8, 2015
1 parent ffa63c7 commit 225984b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consulate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def add_register_args(parser):
registerp.add_argument('name', help='The service name')
registerp.add_argument('-a', '--address', default=None,
help='Specify an address')
registerp.add_argument('-p', '--port', default=None, help='Specify a port')
registerp.add_argument('-p', '--port', default=None, type=int, help='Specify a port')
registerp.add_argument('-s', '--service-id', default=None,
help='Specify a service ID')
registerp.add_argument('-t', '--tags', default=[],
Expand Down

0 comments on commit 225984b

Please sign in to comment.