Skip to content
New issue

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

Arthimatic overflow with unified help message and no args #210

Closed
kbknapp opened this issue Aug 31, 2015 · 0 comments
Closed

Arthimatic overflow with unified help message and no args #210

kbknapp opened this issue Aug 31, 2015 · 0 comments
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... A-parsing Area: Parser's logic and needs it changed somehow. C-bug Category: Updating dependencies
Milestone

Comments

@kbknapp
Copy link
Member

kbknapp commented Aug 31, 2015

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
@kbknapp kbknapp added C-bug Category: Updating dependencies P1: urgent A-help Area: documentation, including docs.rs, readme, examples, etc... A-parsing Area: Parser's logic and needs it changed somehow. labels Aug 31, 2015
@kbknapp kbknapp added this to the 1.3 milestone Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... A-parsing Area: Parser's logic and needs it changed somehow. C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

1 participant