Changeset 18772 in vbox for trunk/src/VBox
- Timestamp:
- Apr 6, 2009 3:09:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r16724 r18772 202 202 { 203 203 RTPrintf("VBoxManage guestproperty get <vmname>|<uuid>\n" 204 " <property> [- verbose]\n"204 " <property> [--verbose]\n" 205 205 "\n"); 206 206 RTPrintf("VBoxManage guestproperty set <vmname>|<uuid>\n" 207 " <property> [<value> [- flags <flags>]]\n"207 " <property> [<value> [--flags <flags>]]\n" 208 208 "\n"); 209 209 RTPrintf("VBoxManage guestproperty enumerate <vmname>|<uuid>\n" 210 " [- patterns <patterns>]\n"210 " [--patterns <patterns>]\n" 211 211 "\n"); 212 212 RTPrintf("VBoxManage guestproperty wait <vmname>|<uuid> <patterns>\n" 213 " [- timeout <timeout>]\n"213 " [--timeout <timeout>]\n" 214 214 "\n"); 215 215 } … … 221 221 bool verbose = false; 222 222 if ( a->argc == 3 223 && strcmp(a->argv[2], "-verbose") == 0) 223 && ( !strcmp(a->argv[2], "--verbose") 224 || !strcmp(a->argv[2], "-verbose"))) 224 225 verbose = true; 225 226 else if (a->argc != 2) … … 283 284 { 284 285 pszValue = a->argv[2]; 285 if (strcmp(a->argv[3], "-flags") != 0) 286 if ( !strcmp(a->argv[3], "--flags") 287 || !strcmp(a->argv[3], "-flags")) 286 288 usageOK = false; 287 289 pszFlags = a->argv[4]; … … 344 346 || a->argc == 2 345 347 || ( a->argc > 3 346 && strcmp(a->argv[1], "-patterns") != 0)) 348 && strcmp(a->argv[1], "--patterns") 349 && strcmp(a->argv[1], "-patterns"))) 347 350 return errorSyntax(USAGE_GUESTPROPERTY, "Incorrect parameters"); 348 351 … … 428 431 for (int i = 2; usageOK && i < a->argc; ++i) 429 432 { 430 if (strcmp(a->argv[i], "-timeout") == 0) 433 if ( !strcmp(a->argv[i], "--timeout") 434 || !strcmp(a->argv[i], "-timeout")) 431 435 { 432 436 if ( i + 1 >= a->argc
Note:
See TracChangeset
for help on using the changeset viewer.