print usage on no args again

This regressed with f9e3fb56b3 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
1 changed files with 4 additions and 1 deletions

View File

@ -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:#?}");