diff options
author | Tim Oram <dev@mitmaro.ca> | 2021-06-16 09:42:55 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2021-06-16 10:00:26 -0230 |
commit | 1ee719109f46cb87bd681cbc9e7eba248182e9af (patch) | |
tree | 99e5d434e7bccae14a4e1b3b6de3cdcaebcf490d /src | |
parent | 4569974bccac402377a107ab26b7381fc3760923 (diff) |
Fix arguments handling
The main function was incorrectly passing the executable name as an
argument. This strips the executable name from the arguments being
passed into the core::run function.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 79f182a..f353dd8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -54,7 +54,7 @@ use std::env::args_os; // TODO use the termination trait once rust-lang/rust#43301 is stable #[allow(clippy::exit, clippy::print_stderr)] fn main() { - let exit = core::run(args_os().collect()); + let exit = core::run(args_os().skip(1).collect()); if let Some(message) = exit.get_message().as_ref() { eprintln!("{}", message); } |