public function __construct($id, $filename, $title, $documentation) { parent::__construct($id, $filename, $title, $documentation); $this->verbosity = self::VERBOSITY_ALL; $campaign = new SiteCommandLineArgument(array('-c', '--campaign'), 'setCampaignShortname', 'Sets the campaign shortname of ' . 'the campaign to build.'); $campaign->addParameter('string', '--campaign expects a single paramater.'); $this->addCommandLineArgument($campaign); }
public function __construct($id, $filename, $title, $documentation) { parent::__construct($id, $filename, $title, $documentation); $this->verbosity = self::VERBOSITY_ALL; $incremental = new SiteCommandLineArgument(array('--incremental'), 'setIncremental', Deliverance::_('When set only updates members of the list that have not been ' . 'updated.')); $this->addCommandLineArgument($incremental); $update_member_cache = new SiteCommandLineArgument(array('-u', '--update-member-cache'), 'setUpdateMemberCache', Deliverance::_('Sets whether to only use resources from s3.')); $this->addCommandLineArgument($update_member_cache); $field = new SiteCommandLineArgument(array('-f', '--field'), 'setField', Deliverance::_('Sets the field that we\'re updating. Will also set the ' . 'merge as the uppercase version of the field.')); $field->addParameter('string', Deliverance::_('--field expects a single paramater.')); $this->addCommandLineArgument($field); $merge = new SiteCommandLineArgument(array('-m', '--merge'), 'setMerge', Deliverance::_('Sets the merge for the field.')); $merge->addParameter('string', Deliverance::_('--merge expects a single paramater.')); $this->addCommandLineArgument($merge); $this->initModules(); $this->parseCommandLineArguments(); $this->initList(); $this->initArrayMap(); $this->initResultsArray(); }
public function __construct($id, $filename, $title, $documentation) { parent::__construct($id, $filename, $title, $documentation); $force_all = new SiteCommandLineArgument(array('--force-all'), 'setForceAll', Deliverance::_('Force cache updates on all segments, ignoring enabled field.')); $this->addCommandLineArgument($force_all); }