Skip to content

Commit

Permalink
Improve early exit error by mentioning --help
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored and erickt committed Jun 22, 2022
1 parent 4814be8 commit bd37ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions argh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ pub fn from_env<T: TopLevelCommand>() -> T {
0
}
Err(()) => {
eprintln!("{}", early_exit.output);
eprintln!("{}\nRun {} --help for more information.", early_exit.output, cmd);
1
}
})
Expand All @@ -547,7 +547,7 @@ pub fn cargo_from_env<T: TopLevelCommand>() -> T {
0
}
Err(()) => {
eprintln!("{}", early_exit.output);
eprintln!("{}\nRun --help for more information.", early_exit.output);
1
}
})
Expand Down

0 comments on commit bd37ed1

Please sign in to comment.