pub fn parse_from_str<'a>(s: &str) -> Result<Self, OptionsError<'a>> {
        let v = shell_words::split(s).map_err(OptionsError::ShellParseError)?;
        if v.is_empty() || v[0].is_empty() {
            return Err(OptionsError::EmptyShell);
        }
        Ok(Shell::Custom(v))
    }
/// Parse given string as shell command line
Parse given string as shell command line
Parse given string as shell command line
pub fn parse_from_str<'a>(s: &str) -> Result<Self, OptionsError<'a>> {
        let v = shell_words::split(s).map_err(OptionsError::ShellParseError)?;
        if v.is_empty() || v[0].is_empty() {
            return Err(OptionsError::EmptyShell);
        }
        Ok(Shell::Custom(v))
    }
pub fn parse_from_str < ' a > ( s : & str ) -> Result < Self , OptionsError < ' a > > { let v = shell_words :: split ( s ) . map_err ( OptionsError :: ShellParseError ) ? ; if v . is_empty ( ) || v [ 0 ] . is_empty ( ) { return Err ( OptionsError :: EmptyShell ) ; } Ok ( Shell :: Custom ( v ) ) }
Parse given string as shell command line
Parse given string as shell command line
s
&str