BaseExportImportCommand#
NAME#
Kernel::System::Console::BaseExportImportCommand - command base class
DESCRIPTION#
Base export/import class for related console commands.
PUBLIC INTERFACE#
PreRun()#
perform additional validations/preparations before Run(). Override this method in your commands.
If this method returns, execution will be continued. If it throws an exception with die(), the program aborts at this point, and Run() will not be called.
Execute()#
this method will parse/validate the command line arguments supplied by the user. If that was ok, the Run() method of the command will be called.
_ParseCommandlineArguments()#
parses and validates the command line arguments provided by the user according to the configured arguments and options of the command.
Returns a hash with argument and option values if all needed values were supplied and correct, or undef otherwise.