コマンドラインにおけるオプションの設定・取得。|の後がエイリアス名、=の後の文字列で型を指定できる。 try { $options = new Zend_Console_Getopt( array( 'help|h' => 'help.', 'zfm|m=s' => 'module', 'zfc|c=s' => 'controller', 'zfa|a=s' => 'action' ) ); $options->parse(); } catch(Zend_Console_Getopt_Exception $e){ die($e->getMessage() . ' : ' . $e->getUsageMessage()); } Zend_Controller_Request_Simpleがポイント。アクション、コントローラ、モジュールを引数に指定してリクエストオブジェクトを取得する。 if(