<?php
require_once dirname(__FILE__) . '/TestCase.php';
+require_once dirname(__FILE__) . '/InterceptingParser.php';
/**
* @author Chuck Hagenbuch <chuck@horde.org>
$this->makeOption('-b', array('action' => 'store_true', 'dest' => 'b')),
$this->makeOption('-c', '--callback', array('action' => 'callback', 'callback' => array($this, 'variableArgs'), 'dest' => 'c')),
);
- $this->parser = new Horde_Argv_Parser(array('usage' => Horde_Argv_Option::SUPPRESS_USAGE,
- 'optionList' => $options));
+ $this->parser = new Horde_Argv_InterceptingParser(array('usage' => Horde_Argv_Option::SUPPRESS_USAGE,
+ 'optionList' => $options));
}
public function variableArgs($option, $opt, $value, $parser)