Changeset 25317 in vbox
- Timestamp:
- Dec 11, 2009 10:28:15 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55895
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/getopt.h
r24825 r25317 236 236 int iFirst, uint32_t fFlags); 237 237 238 /* *238 /* * 239 239 * Command line argument parser, handling both long and short options and checking 240 240 * argument formats, if desired. … … 292 292 293 293 default: 294 if (ch > 0) 295 { 296 if (RT_C_IS_GRAPH(ch)) 297 Error("unhandled option: -%c\n", ch); 298 else 299 Error("unhandled option: %i\n", ch); 300 } 301 else if (ch == VERR_GETOPT_UNKNOWN_OPTION) 302 Error("unknown option: %s\n", ValueUnion.psz); 303 else if (ValueUnion.pDef) 304 Error("%s: %Rrs\n", ValueUnion.pDef->pszLong, ch); 305 else 306 Error("%Rrs\n", ch); 307 return 1; 294 return RTGetOptPrintError(ch, &ValueUnion); 308 295 } 309 296 }
Note:
See TracChangeset
for help on using the changeset viewer.