fix(shell/lean.cpp): fix not to overwrite optind by getopt_long

This commit is contained in:
Soonho Kong 2013-12-12 23:20:47 -05:00
parent ae52c8062e
commit f90a9e96d0

View file

@ -93,7 +93,7 @@ int main(int argc, char ** argv) {
lean::register_modules(); lean::register_modules();
input_kind default_k = input_kind::Lean; // default input_kind default_k = input_kind::Lean; // default
while (true) { 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) if (c == -1)
break; // end of command line break; // end of command line
switch (c) { switch (c) {