[ofw] [PATCH] allow ndinstall.exe to conform to Windows help request convention '/?'

Sean Hefty sean.hefty at intel.com
Wed Jan 13 09:40:23 PST 2010


>--- A/tools/ndinstall/user/installsp.c  Wed Jan 13 09:22:02 2010
>+++ B/tools/ndinstall/user/installsp.c  Wed Jan 13 09:03:58 2010
>@@ -290,6 +290,9 @@
>        WSADATA wsd;
>        char *prov;
>
>+       if (argc > 1 && strcmp(argv[1],"/?") == 0)
>+               goto usage;
>+
>        while ((op = getopt(argc, argv, "hi::r::dlq")) != -1) {
>                switch (op) {
>                case 'h':

getopt should be updated to use '-' or '/' for indicating options.




More information about the ofw mailing list