Skip to main content

guard_dry_run_supported

Function guard_dry_run_supported 

Source
pub fn guard_dry_run_supported(command: &Command) -> Result<(), SshCliError>
Expand description

Rejects --dry-run on a command that cannot honour it.

ยงErrors

crate::errors::SshCliError::InvalidArgument (exit 64) when the flag was passed to an unsupported command.