diff --git a/src/main.rs b/src/main.rs index 68c0c18..d6827d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,7 @@ use toml::Value; fn main() { let mut arguments: Vec = env::args().collect(); let argv0 = arguments.remove(0); - if arguments[1].is_empty() { + if arguments.is_empty() { eprintln!("Usage: {} [table...].[value[index]] [file...]", argv0); exit(64); // sysexits(3) EX_USAGE }