api: change --disable_sudo -> --sudo

Align with options in train. This also prevents unexpected behavior where sudo is used, without being requested. Example:

```
command('uname -a')
```

This command will not run if no sudo information is given and e.g. a sudo password is configured on the node. The user can activate sudo usage with `--sudo` now.
This commit is contained in:
Dominik Richter 2015-11-01 16:03:43 +01:00
parent 94e0e175c7
commit 2b7f4040e7

View file

@ -26,8 +26,8 @@ class InspecCLI < Thor
desc: 'Login key or certificate file for a remote scan.'
option :path, type: :string, default: nil,
desc: 'Login path to use when connecting to the target.'
option :disable_sudo, type: :boolean, default: false,
desc: 'To not run remote scans via sudo.'
option :sudo, type: :boolean, default: false,
desc: 'Run scans with sudo. Only activates on Unix and non-root user.'
option :sudo_password, type: :string, default: nil,
desc: 'Specify a sudo password, if it is required.'
option :sudo_options, type: :string, default: '',