Merge pull request #263 from chef/amanly/add_ssh_port_option_flag

Add -p alias for --port like ssh
This commit is contained in:
Dominik Richter 2015-11-25 15:40:21 +01:00
commit 63f7e7de9c
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class InspecCLI < Thor
desc: 'Choose a backend: local, ssh, winrm, docker.'
option :host, type: :string,
desc: 'Specify a remote host which is tested.'
option :port, type: :numeric,
option :port, aliases: :p, type: :numeric,
desc: 'Specify the login port for a remote scan.'
option :user, type: :string, default: nil,
desc: 'The login user for a remote scan.'

View file

@ -26,7 +26,7 @@ The following options may be used with any of the InSpec CLI subcommands:
``--path``
The login path used to connect to the target for |winrm|.
``--port``
``-p``, ``--port``
The port over which remote scanning will occur.
``--self_signed``