[NDINSTALL] utilize getopt() changes to implement '/?' help request.
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 1 Feb 2010 02:31:33 +0000 (02:31 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 1 Feb 2010 02:31:33 +0000 (02:31 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2692 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tools/ndinstall/user/installsp.c

index c62ef2a..d95e2a4 100644 (file)
@@ -290,8 +290,9 @@ int __cdecl main (int argc, char *argv[])
        WSADATA wsd;\r
        char *prov;\r
 \r
-       while ((op = getopt(argc, argv, "hi::r::dlq")) != -1) {\r
+       while ((op = getopt(argc, argv, "?hi::r::dlq")) != -1) {\r
                switch (op) {\r
+               case '?':\r
                case 'h':\r
                                goto usage;\r
                case 'i':\r