Changeset 93872 in vbox
- Timestamp:
- Feb 21, 2022 4:55:04 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r93115 r93872 119 119 { "--compartment-id", 'c', RTGETOPT_REQ_STRING }, 120 120 { "--state", 's', RTGETOPT_REQ_STRING }, 121 { "help", 1001, RTGETOPT_REQ_NOTHING },122 { "--help", 1002, RTGETOPT_REQ_NOTHING }121 { "help", 'h', RTGETOPT_REQ_NOTHING }, 122 { "--help", 'h', RTGETOPT_REQ_NOTHING } 123 123 }; 124 124 RTGETOPTSTATE GetState; … … 165 165 break; 166 166 } 167 case 1001: 168 case 1002: 167 case 'h': 169 168 printHelp(g_pStdOut); 170 169 return RTEXITCODE_SUCCESS; … … 286 285 { "--compartment-id", 'c', RTGETOPT_REQ_STRING }, 287 286 { "--state", 's', RTGETOPT_REQ_STRING }, 288 { "help", 1001, RTGETOPT_REQ_NOTHING },289 { "--help", 1002, RTGETOPT_REQ_NOTHING }287 { "help", 'h', RTGETOPT_REQ_NOTHING }, 288 { "--help", 'h', RTGETOPT_REQ_NOTHING } 290 289 }; 291 290 RTGETOPTSTATE GetState; … … 326 325 break; 327 326 } 328 case 1001: 329 case 1002: 327 case 'h': 330 328 printHelp(g_pStdOut); 331 329 return RTEXITCODE_SUCCESS; … … 535 533 { "--public-ssh-key", 'k', RTGETOPT_REQ_STRING }, 536 534 { "--cloud-init-script-path", 'c', RTGETOPT_REQ_STRING }, 537 { "help", 1001, RTGETOPT_REQ_NOTHING },538 { "--help", 1002, RTGETOPT_REQ_NOTHING }535 { "help", 'h', RTGETOPT_REQ_NOTHING }, 536 { "--help", 'h', RTGETOPT_REQ_NOTHING } 539 537 }; 540 538 RTGETOPTSTATE GetState; … … 626 624 Bstr(ValueUnion.psz).raw(), NULL); 627 625 break; 628 case 1001: 629 case 1002: 626 case 'h': 630 627 printHelp(g_pStdOut); 631 628 return RTEXITCODE_SUCCESS; … … 718 715 { 719 716 { "--id", 'i', RTGETOPT_REQ_STRING }, 720 { "help", 1001, RTGETOPT_REQ_NOTHING },721 { "--help", 1002, RTGETOPT_REQ_NOTHING }717 { "help", 'h', RTGETOPT_REQ_NOTHING }, 718 { "--help", 'h', RTGETOPT_REQ_NOTHING } 722 719 }; 723 720 RTGETOPTSTATE GetState; … … 750 747 break; 751 748 } 752 case 1001: 753 case 1002: 749 case 'h': 754 750 printHelp(g_pStdOut); 755 751 return RTEXITCODE_SUCCESS; … … 870 866 { 871 867 { "--id", 'i', RTGETOPT_REQ_STRING }, 872 { "help", 1001, RTGETOPT_REQ_NOTHING },873 { "--help", 1002, RTGETOPT_REQ_NOTHING }868 { "help", 'h', RTGETOPT_REQ_NOTHING }, 869 { "--help", 'h', RTGETOPT_REQ_NOTHING } 874 870 }; 875 871 RTGETOPTSTATE GetState; … … 902 898 break; 903 899 } 904 case 1001: 905 case 1002: 900 case 'h': 906 901 printHelp(g_pStdOut); 907 902 return RTEXITCODE_SUCCESS; … … 953 948 { 954 949 { "--id", 'i', RTGETOPT_REQ_STRING }, 955 { "help", 1001, RTGETOPT_REQ_NOTHING },956 { "--help", 1002, RTGETOPT_REQ_NOTHING }950 { "help", 'h', RTGETOPT_REQ_NOTHING }, 951 { "--help", 'h', RTGETOPT_REQ_NOTHING } 957 952 }; 958 953 RTGETOPTSTATE GetState; … … 985 980 break; 986 981 } 987 case 1001: 988 case 1002: 982 case 'h': 989 983 printHelp(g_pStdOut); 990 984 return RTEXITCODE_SUCCESS; … … 1036 1030 { 1037 1031 { "--id", 'i', RTGETOPT_REQ_STRING }, 1038 { "help", 1001, RTGETOPT_REQ_NOTHING },1039 { "--help", 1002, RTGETOPT_REQ_NOTHING }1032 { "help", 'h', RTGETOPT_REQ_NOTHING }, 1033 { "--help", 'h', RTGETOPT_REQ_NOTHING } 1040 1034 }; 1041 1035 RTGETOPTSTATE GetState; … … 1068 1062 break; 1069 1063 } 1070 case 1001: 1071 case 1002: 1064 case 'h': 1072 1065 printHelp(g_pStdOut); 1073 1066 return RTEXITCODE_SUCCESS; … … 1211 1204 { "--display-name", 'd', RTGETOPT_REQ_STRING }, 1212 1205 { "--launch-mode", 'm', RTGETOPT_REQ_STRING }, 1213 { "help", 1001, RTGETOPT_REQ_NOTHING },1214 { "--help", 1002, RTGETOPT_REQ_NOTHING }1206 { "help", 'h', RTGETOPT_REQ_NOTHING }, 1207 { "--help", 'h', RTGETOPT_REQ_NOTHING } 1215 1208 }; 1216 1209 RTGETOPTSTATE GetState; … … 1261 1254 Bstr(Utf8Str("launch-mode=").append(ValueUnion.psz)).detachTo(parameters.appendedRaw()); 1262 1255 break; 1263 case 1001: 1264 case 1002: 1256 case 'h': 1265 1257 printHelp(g_pStdOut); 1266 1258 return RTEXITCODE_SUCCESS; … … 1318 1310 { "--display-name", 'd', RTGETOPT_REQ_STRING }, 1319 1311 { "--launch-mode", 'm', RTGETOPT_REQ_STRING }, 1320 { "help", 1001, RTGETOPT_REQ_NOTHING },1321 { "--help", 1002, RTGETOPT_REQ_NOTHING }1312 { "help", 'h', RTGETOPT_REQ_NOTHING }, 1313 { "--help", 'h', RTGETOPT_REQ_NOTHING } 1322 1314 }; 1323 1315 RTGETOPTSTATE GetState; … … 1404 1396 } 1405 1397 1406 case 1001: 1407 case 1002: 1398 case 'h': 1408 1399 printHelp(g_pStdOut); 1409 1400 return RTEXITCODE_SUCCESS; … … 1514 1505 { "--bucket-name", 'b', RTGETOPT_REQ_STRING }, 1515 1506 { "--object-name", 'o', RTGETOPT_REQ_STRING }, 1516 { "help", 1001, RTGETOPT_REQ_NOTHING },1517 { "--help", 1002, RTGETOPT_REQ_NOTHING }1507 { "help", 'h', RTGETOPT_REQ_NOTHING }, 1508 { "--help", 'h', RTGETOPT_REQ_NOTHING } 1518 1509 }; 1519 1510 RTGETOPTSTATE GetState; … … 1551 1542 Bstr(Utf8Str("object-name=").append(ValueUnion.psz)).detachTo(parameters.appendedRaw()); 1552 1543 break; 1553 case 1001: 1554 case 1002: 1544 case 'h': 1555 1545 printHelp(g_pStdOut); 1556 1546 return RTEXITCODE_SUCCESS; … … 1600 1590 { 1601 1591 { "--id", 'i', RTGETOPT_REQ_STRING }, 1602 { "help", 1001, RTGETOPT_REQ_NOTHING },1603 { "--help", 1002, RTGETOPT_REQ_NOTHING }1592 { "help", 'h', RTGETOPT_REQ_NOTHING }, 1593 { "--help", 'h', RTGETOPT_REQ_NOTHING } 1604 1594 }; 1605 1595 RTGETOPTSTATE GetState; … … 1624 1614 strImageId = ValueUnion.psz; 1625 1615 break; 1626 case 1001: 1627 case 1002: 1616 case 'h': 1628 1617 printHelp(g_pStdOut); 1629 1618 return RTEXITCODE_SUCCESS; … … 1692 1681 { 1693 1682 { "--id", 'i', RTGETOPT_REQ_STRING }, 1694 { "help", 1001, RTGETOPT_REQ_NOTHING },1695 { "--help", 1002, RTGETOPT_REQ_NOTHING }1683 { "help", 'h', RTGETOPT_REQ_NOTHING }, 1684 { "--help", 'h', RTGETOPT_REQ_NOTHING } 1696 1685 }; 1697 1686 RTGETOPTSTATE GetState; … … 1725 1714 } 1726 1715 1727 case 1001: 1728 case 1002: 1716 case 'h': 1729 1717 printHelp(g_pStdOut); 1730 1718 return RTEXITCODE_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.