createParser() public method

Create the parser for command line arguments.
public createParser ( ) : Horde_Argv_Parser
return Horde_Argv_Parser The parser.
示例#1
0
 public function testParser()
 {
     $modular = new Horde_Cli_Modular(array('modules' => array('directory' => __DIR__ . '/../Stub/Module'), 'provider' => array('prefix' => 'Horde_Cli_Modular_Stub_Module_')));
     $this->assertInstanceOf('Horde_Argv_Parser', $modular->createParser());
 }