char *conf_template = NULL, *config_file = NULL;\r
uint32_t val;\r
const char *const short_option =\r
- "F:c:i:w:f:ed:D:g:l:L:s:t:a:u:m:X:R:zM:U:S:P:Y:ANBIQvVhoryxp:n:q:k:C:G:H:";\r
+#ifdef __WIN__\r
+ "?F:c:i:w:f:ed:D:g:l:L:s:t:a:u:m:X:R:zM:U:S:P:Y:ANBIQvVhoryxp:n:q:k:C:G:H:";\r
+#else\r
+ "F:c:i:w:f:ed:D:g:l:L:s:t:a:u:m:X:R:zM:U:S:P:Y:ANBIQvVhoryxp:n:q:k:C:G:H:";\r
+#endif\r
\r
/*\r
In the array below, the 2nd parameter specifies the number\r
config_file = optarg;\r
printf("Config file is `%s`:\n", config_file);\r
break;\r
-#ifdef __WIN__\r
- /* stop here if option parsing problems.\r
- * Allows error message to viewed and not lost in\r
- * verbose usage output.\r
- */\r
- case ':':\r
- case '?':\r
- exit(1);\r
-#endif\r
default:\r
break;\r
}\r
int32_t vendor_debug = 0;\r
char flow_name[64];\r
uint32_t next_option;\r
+#ifdef __WIN__\r
+ const char *const short_option = "?f:l:m:M:d:g:s:t:i:pcvVh";\r
+#else\r
const char *const short_option = "f:l:m:M:d:g:s:t:i:pcvVh";\r
+#endif\r
\r
/*\r
* In the array below, the 2nd parameter specified the number\r
{NULL, 0, NULL, 0} /* Required at end of array */\r
};\r
\r
-#ifdef __WIN__\r
- if ( !strcmp(argv[1],"/?") ) {\r
- show_usage();\r
- return 0;\r
- }\r
-#endif\r
-\r
/* Make sure that the opensm, complib and osmtest were compiled using\r
same modes (debug/free) */\r
if (osm_is_debug() != cl_is_debug() || osm_is_debug() != osmt_is_debug()\r
}\r
break;\r
\r
+#ifdef __WIN__\r
+ case '?':\r
+#endif\r
case 'h':\r
show_usage();\r
return 0;\r