Changeset 71815 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 11, 2018 9:29:45 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r71319 r71815 186 186 187 187 } GCTLCMDCTX, *PGCTLCMDCTX; 188 189 190 typedef struct COPYCONTEXT191 {192 COPYCONTEXT()193 : fDryRun(false),194 fHostToGuest(false)195 {196 }197 198 PGCTLCMDCTX pCmdCtx;199 bool fDryRun;200 bool fHostToGuest;201 202 } COPYCONTEXT, *PCOPYCONTEXT;203 188 204 189 /** … … 340 325 RTStrmPrintf(pStrm, 341 326 " copyfrom [common-options]\n" 342 " [-- dryrun] [--follow] [-R|--recursive]\n"327 " [--follow] [-R|--recursive]\n" 343 328 " <guest-src0> [guest-src1 [...]] <host-dst>\n" 344 329 "\n" 345 330 " copyfrom [common-options]\n" 346 " [-- dryrun] [--follow] [-R|--recursive]\n"331 " [--follow] [-R|--recursive]\n" 347 332 " [--target-directory <host-dst-dir>]\n" 348 333 " <guest-src0> [guest-src1 [...]]\n" … … 351 336 RTStrmPrintf(pStrm, 352 337 " copyto [common-options]\n" 353 " [-- dryrun] [--follow] [-R|--recursive]\n"338 " [--follow] [-R|--recursive]\n" 354 339 " <host-src0> [host-src1 [...]] <guest-dst>\n" 355 340 "\n" 356 341 " copyto [common-options]\n" 357 " [-- dryrun] [--follow] [-R|--recursive]\n"342 " [--follow] [-R|--recursive]\n" 358 343 " [--target-directory <guest-dst>]\n" 359 344 " <host-src0> [host-src1 [...]]\n" … … 1749 1734 enum GETOPTDEF_COPY 1750 1735 { 1751 GETOPTDEF_COPY_DRYRUN = 1000, 1752 GETOPTDEF_COPY_FOLLOW, 1736 GETOPTDEF_COPY_FOLLOW = 1000, 1753 1737 GETOPTDEF_COPY_TARGETDIR 1754 1738 }; … … 1756 1740 { 1757 1741 GCTLCMD_COMMON_OPTION_DEFS() 1758 { "--dryrun", GETOPTDEF_COPY_DRYRUN, RTGETOPT_REQ_NOTHING },1759 1742 { "--follow", GETOPTDEF_COPY_FOLLOW, RTGETOPT_REQ_NOTHING }, 1760 1743 { "--recursive", 'R', RTGETOPT_REQ_NOTHING }, … … 1768 1751 1769 1752 const char *pszDst = NULL; 1770 bool fDryRun = false;1771 1753 bool fFollow = false; 1772 1754 bool fRecursive = false; … … 1782 1764 { 1783 1765 GCTLCMD_COMMON_OPTION_CASES(pCtx, ch, &ValueUnion); 1784 1785 case GETOPTDEF_COPY_DRYRUN:1786 fDryRun = true;1787 break;1788 1766 1789 1767 case GETOPTDEF_COPY_FOLLOW: … … 1843 1821 else 1844 1822 RTPrintf("Copying from guest to host ...\n"); 1845 if (fDryRun)1846 RTPrintf("Dry run - no files copied!\n");1847 1823 } 1848 1824
Note:
See TracChangeset
for help on using the changeset viewer.