We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce:
fn main() { let m = App::new("bug") .setting(AppSettings::UnifiedHelpMessage) .get_matches(); }
Run:
$ export RUST_BACKTRACE=1; ./target/debug/bug --help bug USAGE: bug [OPTIONS] OPTIONS: thread '<main>' panicked at 'arithmetic operation overflowed', /home/kevin/Projects/clap-rs/src/app/app.rs:1515 stack backtrace: 1: 0x56341c29d2b9 - sys::backtrace::tracing::imp::write::h8f496a14b25e71ceLis 2: 0x56341c2a059c - panicking::on_panic::h3ee2f6ba9de0da08ijx 3: 0x56341c296cce - rt::unwind::begin_unwind_inner::h37662d87831c3224WLw 4: 0x56341c2972f7 - rt::unwind::begin_unwind_fmt::hd2488f506cea04d52Kw 5: 0x56341c29ffd1 - rust_begin_unwind 6: 0x56341c2cbd5f - panicking::panic_fmt::h8cd068804ffdc08dJ7E 7: 0x56341c2cb838 - panicking::panic::h01c00afba0555d69g6E 8: 0x56341c22378b - app::app::App<'a, 'v, 'ab, 'u, 'h, 'ar>::print_help::h7ff541ec601593fcuzb at /home/kevin/Projects/clap-rs/src/app/app.rs:1515 9: 0x56341c2497e8 - app::app::App<'a, 'v, 'ab, 'u, 'h, 'ar>::parse_long_arg::h0c5dbbc3db0d4f6chMd at /home/kevin/Projects/clap-rs/src/app/app.rs:2403 10: 0x56341c23a468 - app::app::App<'a, 'v, 'ab, 'u, 'h, 'ar>::get_matches_with::h6419763000412389877 at /home/kevin/Projects/clap-rs/src/app/app.rs:1993 11: 0x56341c2367ad - app::app::App<'a, 'v, 'ab, 'u, 'h, 'ar>::get_matches_from::h17082355440881955135 at /home/kevin/Projects/clap-rs/src/app/app.rs:1755 12: 0x56341c23629d - app::app::App<'a, 'v, 'ab, 'u, 'h, 'ar>::get_matches::hb3a2b12c7372cdfdygc at /home/kevin/Projects/clap-rs/src/app/app.rs:1702 13: 0x56341c1b8540 - main::h9046744019b06065haa at src/main.rs:8 14: 0x56341c2a2304 - rt::unwind::try::try_fn::h8335202758531480877 15: 0x56341c29ff78 - __rust_try 16: 0x56341c2a1fef - rt::lang_start::hfdd04d827c3da07ayfx 17: 0x56341c1bbc06 - main 18: 0x7faa3538e60f - __libc_start_main 19: 0x56341c1b83e8 - _start 20: 0x0 - <unknown> -h, --help
The text was updated successfully, but these errors were encountered:
fix(Unified Help Messages): fixes a crash from this setting and no opts
169ffec
Closes #210
No branches or pull requests
To reproduce:
Run:
The text was updated successfully, but these errors were encountered: