Skip to content

Commit

Permalink
print usage on no args again
Browse files Browse the repository at this point in the history
This regressed with f9e3fb5 due to
<pacak/bpaf#385>.
  • Loading branch information
scottlamb committed Aug 31, 2024
1 parent 06f9425 commit 8b95120
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:#?}");

Expand Down

0 comments on commit 8b95120

Please sign in to comment.