diff --git a/src/main.rs b/src/main.rs index 7ea2b31..57556e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,7 +95,7 @@ fn display_stack_trace(msg: &str, stack: &valgrind::xml::Stack) { fn main() { panic::replace_hook(); - let number_of_arguments = || env::args_os().skip(0).count(); + let number_of_arguments = || env::args_os().skip(1).count(); let help_requested = || env::args_os().any(|arg| arg == "--help" || arg == "-h"); let is_cargo_subcommand = || env::args_os().nth(1).map_or(false, |arg| arg == "valgrind"); if number_of_arguments() == 0 || help_requested() {