+ 'debug',
+ array(
+ 'short_name' => '-d',
+ 'long_name' => '--debug',
+ 'description' => "Output debug messages",
+ 'action' => 'StoreTrue'
+ )
+ );
+ $p->addOption(
+ 'force',
+ array(
+ 'short_name' => '-f',
+ 'long_name' => '--force',
+ 'description' => "Update even when resource did not change",
+ 'action' => 'StoreTrue'
+ )
+ );
+
+ $this->setupCliFeed($p);
+ $this->setupCliPingback($p);
+
+ $this->cliParser = $p;
+ }
+
+ protected function setupCliFeed($p)
+ {
+ $feed = $p->addCommand(
+ 'feed',
+ array(
+ 'description' => 'Edit, list or delete feeds'
+ )
+ );
+
+ $add = $feed->addCommand(
+ 'add',
+ array(
+ 'description' => 'Add the feed',
+ )
+ );
+ $add->addArgument('feed', array('description' => 'URL of feed'));
+
+ $remove = $feed->addCommand(
+ 'remove',
+ array(
+ 'description' => 'Remove the feed',
+ )
+ );
+ $remove->addArgument('feed', array('description' => 'URL or ID of feed'));
+
+
+ $update = $feed->addCommand(
+ 'update',
+ array(
+ 'description' => 'Update feed data and send out pings'
+ )
+ );
+ $update->addOption(