diff --git a/src/main.rs b/src/main.rs index edb1544a..1d2320a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,12 +43,12 @@ fn main() -> Result<(), Box> { #[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))] fn main_body() -> Result<(), Box> { - let args = std::env::args(); + let args = std::env::args().skip(1); if args.is_empty() { let org_contents = read_stdin_to_string()?; run_anonymous_parse(org_contents) } else { - for arg in args.skip(1) { + for arg in args { run_parse_on_file(arg)? } Ok(())