mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-23 20:53:18 -05:00
print usage on no args again
This regressed with f9e3fb56b3ee89097a5f38c035acc491f6ed2d22 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))
|
.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:#?}");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user