added more usage info

This commit is contained in:
Emma Tebibyte 2022-12-19 14:28:28 -05:00
parent 4e3c5e21f5
commit a74b0fede2

View File

@ -28,7 +28,7 @@ fn main() {
let mut arguments: Vec<String> = env::args().collect();
let argv0 = arguments.remove(0);
if arguments[1].is_empty() {
eprintln!("Usage: {} [table...].[value] [file...]", argv0);
eprintln!("Usage: {} [table...].[value[index]] [file...]", argv0);
process::exit(64); // sysexits(3) EX_USAGE
}
let input = &arguments[1];