ref: 3c8d89929683d07dbee7b310171f12a0e49c58a1
parent: affc8ff2ab7f2ac7aa0d62b1e7f15878f10523c7
author: cancel <cancel@cancel.fm>
date: Sun Nov 25 05:44:22 EST 2018
Change to use better error message for >1 file arg
--- a/cli_main.c
+++ b/cli_main.c
@@ -29,6 +29,9 @@
if (optind == argc - 1) {
input_file = argv[optind];
+ } else if (optind < argc - 1) {
+ fprintf(stderr, "Expected only 1 file argument");
+ return 1;
}
if (input_file == NULL) {