Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / nuance / management / NuanceManagementUpdateWorkflow.php
blob10878770f6bcbb87a65a077cb86e364e49aeceeb
1 <?php
3 final class NuanceManagementUpdateWorkflow
4 extends NuanceManagementWorkflow {
6 protected function didConstruct() {
7 $this
8 ->setName('update')
9 ->setExamples('**update** --item __item__ [__options__]')
10 ->setSynopsis(pht('Update or route an item.'))
11 ->setArguments(
12 array(
13 array(
14 'name' => 'item',
15 'param' => 'item',
16 'help' => pht('Choose which item to route.'),
18 ));
21 public function execute(PhutilArgumentParser $args) {
22 $item = $this->loadItem($args, 'item');
24 PhabricatorWorker::setRunAllTasksInProcess(true);
25 $item->scheduleUpdate();
27 return 0;