Commit 271e3810 authored by Thomas White's avatar Thomas White
Browse files

Handle '?' return value from getopt_long()

parent a64d5b14
......@@ -380,6 +380,9 @@ int main(int argc, char *argv[])
}
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -771,6 +771,9 @@ int main(int argc, char *argv[])
shell_file = strdup(optarg);
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -425,6 +425,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -223,6 +223,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -415,6 +415,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -404,6 +404,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -370,6 +370,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -369,6 +369,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
......@@ -437,6 +437,9 @@ int main(int argc, char *argv[])
}
break;
case '?' :
break;
case 0 :
break;
......
......@@ -704,6 +704,9 @@ int main(int argc, char *argv[])
case 0 :
break;
case '?' :
break;
default :
ERROR("Unhandled option '%c'\n", c);
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment