Skip to content

Commit

Permalink
Improve CLI typing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickw444 committed Dec 24, 2018
1 parent 4f9359f commit 91071b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nessclient/cli/send_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

@click.command(help="Send a command")
@click.option('--host', required=True)
@click.option('--port', required=True)
@click.option('--port', required=True, type=int)
@click.argument('command')
def send_command(host, port, command):
def send_command(host: str, port: int, command: str):
loop = asyncio.get_event_loop()
client = Client(host=host, port=port, loop=loop)

Expand Down

0 comments on commit 91071b5

Please sign in to comment.