void DumpLicenseTask::initHelp() { CMDLineRegistry * cmdlineRegistry = AppContext::getCMDLineRegistry(); CMDLineHelpProvider * helpSection = new CMDLineHelpProvider( LICENSE_CMDLINE_OPTION, tr( "Shows license information." )); cmdlineRegistry->registerCMDLineHelpProvider(helpSection); }
void WorkflowDesignerPlugin::registerCMDLineHelp() { CMDLineRegistry * cmdLineRegistry = AppContext::getCMDLineRegistry(); assert( NULL != cmdLineRegistry ); CMDLineHelpProvider * taskSection = new CMDLineHelpProvider( RUN_WORKFLOW, tr("Runs the specified task."), tr("Runs the specified task. A path to a user-defined UGENE workflow" " be used as a task name."), tr("<task_name> [<task_parameter>=value ...]")); cmdLineRegistry->registerCMDLineHelpProvider( taskSection ); CMDLineHelpProvider * printSection = new CMDLineHelpProvider( PRINT, tr("Prints the content of the specified slot."), tr("Prints the content of the specified slot. The incoming/outcoming content of" " specified slot is printed to the standard output."), tr("<actor_name>.<port_name>.<slot_name>")); Q_UNUSED(printSection); CMDLineHelpProvider * galaxyConfigSection = new CMDLineHelpProvider( GalaxyConfigTask::GALAXY_CONFIG_OPTION, tr("Creates new Galaxy tool config."), tr("Creates new Galaxy tool config from existing workflow. Paths to UGENE" " and Galaxy can be set"), tr("<uwl-file> [--ugene-path=value] [--galaxy-path=value]")); cmdLineRegistry->registerCMDLineHelpProvider( galaxyConfigSection ); //CMDLineHelpProvider * remoteMachineSectionArguments = new CMDLineHelpProvider( REMOTE_MACHINE, "<path-to-machine-file>"); //CMDLineHelpProvider * remoteMachineSection = new CMDLineHelpProvider( REMOTE_MACHINE, tr("run provided tasks on given remote machine") ); //TODO: bug UGENE-23 //cmdLineRegistry->registerCMDLineHelpProvider( remoteMachineSectionArguments ); //cmdLineRegistry->registerCMDLineHelpProvider( remoteMachineSection ); }