Skip to main content

discover_flags

Function discover_flags 

Source
pub fn discover_flags(
    command: &str,
    subcommand: Option<&str>,
) -> Result<Vec<FlagAlias>, RippyError>
Expand description

Run a command with --help and parse the output for flag aliases.

§Errors

Returns RippyError::Setup if the command cannot be executed.