print usage on no args again
This regressed with f9e3fb56b3
due to
<https://github.com/pacak/bpaf/issues/385>.
This commit is contained in:
parent
06f942582c
commit
8b951200c9
|
@ -93,7 +93,10 @@ fn main() {
|
|||
.run_inner(bpaf::Args::current_args().set_name(progname))
|
||||
{
|
||||
Ok(a) => a,
|
||||
Err(e) => std::process::exit(e.exit_code()),
|
||||
Err(e) => {
|
||||
e.print_mesage(100);
|
||||
std::process::exit(e.exit_code())
|
||||
}
|
||||
};
|
||||
tracing::trace!("Parsed command-line arguments: {args:#?}");
|
||||
|
||||
|
|
Loading…
Reference in New Issue