Skip to content
Snippets Groups Projects
Commit d36c1b88 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

knotc: fix argument parsing if non-interactive

parent 52385c1a
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,8 @@ int main(int argc, char **argv)
};
/* Parse command line arguments */
int opt = 0, li = 0;
while ((opt = getopt_long(argc, argv, "c:C:s:t:fvhV", opts, &li)) != -1) {
int opt = 0;
while ((opt = getopt_long(argc, argv, "+c:C:s:t:fvhV", opts, NULL)) != -1) {
switch (opt) {
case 'c':
params.config = optarg;
......
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