mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
fix: Format chained method
This commit is contained in:
parent
3216a64bea
commit
fcab81aadb
1 changed files with 1 additions and 2 deletions
|
@ -28,8 +28,7 @@ fn main() -> Result<(), String> {
|
|||
|
||||
fn respond(line: &str) -> Result<bool, String> {
|
||||
let args = shlex::split(line).ok_or("error: Invalid quoting")?;
|
||||
let cli = Cli::try_parse_from(args)
|
||||
.map_err(|e| e.to_string())?;
|
||||
let cli = Cli::try_parse_from(args).map_err(|e| e.to_string())?;
|
||||
match cli.command {
|
||||
Commands::Ping => {
|
||||
write!(std::io::stdout(), "Pong").map_err(|e| e.to_string())?;
|
||||
|
|
Loading…
Reference in a new issue