Whamcloud - gitweb
b=13128
[fs/lustre-release.git] / lnet / utils / parser.c
index 2f740c1..ee9604e 100644 (file)
@@ -333,6 +333,10 @@ int Parser_commands(void)
                 if (*s) {
                         add_history(s);
                         rc = execute_line(s);
+
+                        /* reset optind to 0 to tell getopt
+                         * to reinitialize itself */
+                        optind = 0;
                 }
                 
                 free(line);