Changeset 34542 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Nov 30, 2010 10:57:21 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68333
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r33540 r34542 207 207 { 208 208 /* 209 * A value is required with the argument. We're trying to be very209 * A value is required with the argument. We're trying to be 210 210 * understanding here and will permit any of the following: 211 211 * --long12:value, --long12=value, --long12 value, 212 212 * --long:value, --long=value, --long value, 213 * --long: value, --long= value214 213 * 215 214 * If the option is index, then all trailing chars must be … … 574 573 * Find the argument value. 575 574 * 576 * A value is required with the argument. We're trying to be very575 * A value is required with the argument. We're trying to be 577 576 * understanding here and will permit any of the following: 578 * -svalue, -s:value, -s=value, 579 * -s value, -s: value, -s= value 577 * -svalue, -s value, -s:value and -s=value 580 578 * (Ditto for long options.) 581 579 */ … … 583 581 if (fShort) 584 582 { 585 if ( pszArgThis[2] == '\0' 586 || ( pszArgThis[3] == '\0' 587 && ( pszArgThis[2] == ':' 588 || pszArgThis[2] == '=')) ) 583 if (pszArgThis[2] == '\0') 589 584 { 590 585 if (iThis + 1 >= pState->argc) … … 636 631 else 637 632 { 638 if ( pszArgThis[cchLong] == '\0' 639 || pszArgThis[cchLong + 1] == '\0') 633 if (pszArgThis[cchLong] == '\0') 640 634 { 641 635 if (iThis + 1 >= pState->argc)
Note:
See TracChangeset
for help on using the changeset viewer.