- Timestamp:
- Apr 6, 2009 3:19:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp
r16530 r18776 252 252 for (i = 1; i < argc; i++) 253 253 { 254 if (strcmp(argv[i], "-period") == 0) 254 if ( !strcmp(argv[i], "--period") 255 || !strcmp(argv[i], "-period")) 255 256 { 256 257 if (argc <= i + 1) … … 260 261 return errorArgument("Invalid value for 'period' parameter: '%s'", argv[i]); 261 262 } 262 else if (strcmp(argv[i], "-samples") == 0) 263 else if ( !strcmp(argv[i], "--samples") 264 || !strcmp(argv[i], "-samples")) 263 265 { 264 266 if (argc <= i + 1) … … 268 270 return errorArgument("Invalid value for 'samples' parameter: '%s'", argv[i]); 269 271 } 270 else if (strcmp(argv[i], "-list") == 0) 272 else if ( !strcmp(argv[i], "--list") 273 || !strcmp(argv[i], "-list")) 271 274 listMatches = true; 272 275 else … … 417 420 for (i = 1; i < argc; i++) 418 421 { 419 if (strcmp(argv[i], "-period") == 0) 422 if ( !strcmp(argv[i], "--period") 423 || !strcmp(argv[i], "-period")) 420 424 { 421 425 if (argc <= i + 1) … … 425 429 return errorArgument("Invalid value for 'period' parameter: '%s'", argv[i]); 426 430 } 427 else if (strcmp(argv[i], "-samples") == 0) 431 else if ( !strcmp(argv[i], "--samples") 432 || !strcmp(argv[i], "-samples")) 428 433 { 429 434 if (argc <= i + 1) … … 433 438 return errorArgument("Invalid value for 'samples' parameter: '%s'", argv[i]); 434 439 } 435 else if (strcmp(argv[i], "-list") == 0) 440 else if ( !strcmp(argv[i], "--list") 441 || !strcmp(argv[i], "-list")) 436 442 listMatches = true; 437 else if (strcmp(argv[i], "-detach") == 0) 443 else if ( !strcmp(argv[i], "--detach") 444 || !strcmp(argv[i], "-detach")) 438 445 isDetached = true; 439 446 else
Note:
See TracChangeset
for help on using the changeset viewer.