fixed usage detection

This commit is contained in:
Emma Tebibyte 2022-12-19 22:58:38 -05:00
parent 7128f8d673
commit 35401c4bbc

View File

@ -27,7 +27,7 @@ use toml::Value;
fn main() {
let mut arguments: Vec<String> = 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
}