print usage on no args again

This regressed with f9e3fb56b3ee89097a5f38c035acc491f6ed2d22 due to
<https://github.com/pacak/bpaf/issues/385>.
This commit is contained in:
Scott Lamb 2024-08-31 07:18:18 -07:00
parent 06f942582c
commit 8b951200c9

View File

@ -93,7 +93,10 @@ fn main() {
.run_inner(bpaf::Args::current_args().set_name(progname)) .run_inner(bpaf::Args::current_args().set_name(progname))
{ {
Ok(a) => a, 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:#?}"); tracing::trace!("Parsed command-line arguments: {args:#?}");