VirtualBox

Ignore:
Timestamp:
Oct 24, 2019 12:54:46 PM (5 years ago)
Author:
vboxsync
Message:

Improved the action (local or cloud) check for export operation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp

    r81515 r81517  
    14751475        if (llMachines.empty())
    14761476            return errorSyntax(USAGE_EXPORTAPPLIANCE, "At least one machine must be specified with the export command.");
    1477         if (!strOutputFile.length())
     1477
     1478        /* Last check after parsing all arguments */
     1479        if (strOutputFile.isNotEmpty())
     1480        {
     1481            if (actionType == NOT_SET)
     1482            {
     1483                if (fCloud)
     1484                    actionType = CLOUD;
     1485                else
     1486                    actionType = LOCAL;
     1487            }
     1488        }
     1489        else
    14781490            return errorSyntax(USAGE_EXPORTAPPLIANCE, "Missing --output argument with export command.");
    14791491
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette