Skip to content
Snippets Groups Projects
Commit d2d1a842 authored by Michal Vlasák's avatar Michal Vlasák
Browse files

Fix argument handling

parent d97ba2aa
No related branches found
No related tags found
No related merge requests found
Pipeline #252690 passed
......@@ -4,8 +4,8 @@
#include "parser.h"
 
int main(int argc, char **argv) {
if (argc != 2) {
fprintf(stderr, "Error: expected one argument\n");
if (argc < 2) {
fprintf(stderr, "Error: expected at least one argument\n");
return 1;
}
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment