fix(shell/lean.cpp): fix not to overwrite optind by getopt_long
This commit is contained in:
parent
ae52c8062e
commit
f90a9e96d0
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ int main(int argc, char ** argv) {
|
|||
lean::register_modules();
|
||||
input_kind default_k = input_kind::Lean; // default
|
||||
while (true) {
|
||||
int c = getopt_long(argc, argv, "lugvhc:012s:012", g_long_options, &optind);
|
||||
int c = getopt_long(argc, argv, "lugvhc:012s:012", g_long_options, NULL);
|
||||
if (c == -1)
|
||||
break; // end of command line
|
||||
switch (c) {
|
||||
|
|
Loading…
Reference in a new issue