/**
  * This methods sets all non-core options handle by this tool.
  */
 protected function setOptions()
 {
     $this->_options->setHelpText("This tool provides a mechanism to run recurring workflow tasks.");
     $text = "This option triggers the execution of all known workflows.\n";
     $text .= "You may filter the execution using option '--workflow'.";
     $this->_options->addOption(Option::EasyFactory(self::OptionRun, array('--run', '-r'), Option::TypeNoValue, $text, 'value'));
     $text = "This options provides a way to filter a specific workflow.";
     $this->_options->addOption(Option::EasyFactory(self::OptionWorkflow, array('--workflow', '-w'), Option::TypeValue, $text, 'value'));
 }
Exemple #2
0
 protected function setOptions()
 {
     $this->_options->setHelpText("This tool provides several mechanisms to maintain your tags.");
     $text = "This option removes obsolete connections and empty tags.";
     $this->_options->addOption(Option::EasyFactory(self::OptionCleanUp, array('--clean-up', '-c'), Option::TypeNoValue, $text, 'value'));
     $text = "Update item counts on each tag.";
     $this->_options->addOption(Option::EasyFactory(self::OptionUpdateCounts, array('--update-counts', '-u'), Option::TypeNoValue, $text, 'value'));
     $text = "TODO help text for: '--list-atags', '-l'.";
     $this->_options->addOption(Option::EasyFactory(self::OptionListAtags, array('--list-atags', '-l'), Option::TypeNoValue, $text, 'value'));
     $text = "TODO help text for: '--run-atags', '-r'.";
     $this->_options->addOption(Option::EasyFactory(self::OptionRunAtags, array('--run-atags', '-r'), Option::TypeNoValue, $text, 'value'));
     $text = "TODO help text for: '--active-tag', '-a'.";
     $this->_options->addOption(Option::EasyFactory(self::OptionActiveTag, array('--active-tag', '-a'), Option::TypeNoValue, $text, 'value'));
 }
 /**
  * This methods sets all non-core options handle by this tool.
  */
 protected function setOptions()
 {
     $this->_options->setHelpText("This tool provides a mechanism to run some manual workflow tasks.");
     $text = 'This options specifies a directory where to drop images.';
     $this->_options->addOption(Option::EasyFactory(self::OptionDirectory, array('--directory', '-d'), Option::TypeValue, $text, 'path'));
     $text = "This options generates an graph for certain workflow configuration.\n";
     $text = "Requires the option '--directory'.";
     $this->_options->addOption(Option::EasyFactory(self::OptionGenGrapth, array('--gen-flow', '-gf'), Option::TypeValue, $text, 'name'));
     $text = "This option triggers the injection of a new flow.\n";
     $text .= "It requires options: '--id', '--type' and '--workflow'";
     $this->_options->addOption(Option::EasyFactory(self::OptionInject, array('--inject', '-j'), Option::TypeNoValue, $text, 'value'));
     $text = "This options specifies a flowing item ID.";
     $this->_options->addOption(Option::EasyFactory(self::OptionId, array('--id', '-i'), Option::TypeValue, $text, 'value'));
     $text = "This options specifies a flowing item type.";
     $this->_options->addOption(Option::EasyFactory(self::OptionType, array('--type', '-t'), Option::TypeValue, $text, 'value'));
     $text = "This options specifies a workflow.";
     $this->_options->addOption(Option::EasyFactory(self::OptionWorkflow, array('--workflow', '-w'), Option::TypeValue, $text, 'name'));
 }
Exemple #4
0
 protected function setOptions()
 {
     $this->_options->addOption(Option::EasyFactory('Basic', array('-b'), Option::TypeNoValue));
 }