diff --git a/src/shell/lean.cpp b/src/shell/lean.cpp index 09854d938..e9ec5941e 100644 --- a/src/shell/lean.cpp +++ b/src/shell/lean.cpp @@ -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) {