mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-20 09:56:07 -05:00
print usage on no args again
This regressed with f9e3fb56b3 due to
<https://github.com/pacak/bpaf/issues/385>.
This commit is contained in:
@@ -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:#?}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user