mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
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:
parent
94e0e175c7
commit
2b7f4040e7
1 changed files with 2 additions and 2 deletions
|
@ -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: '',
|
||||
|
|
Loading…
Reference in a new issue