[ofw] [PATCH] allow ndinstall.exe to conform to Windows help request convention '/?'
Smith, Stan
stan.smith at intel.com
Wed Jan 13 10:26:19 PST 2010
Hefty, Sean wrote:
>> --- 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.
Please feel free to embellish getopt()...for now I'm concerned with 2.2 release and will modify this code when getopt() supports multiple switch identifiers along with the switch '?'.
More information about the ofw
mailing list