Phrozn/Runner/CommandLine/Parser.php
private function configureCommand($paths, $config)
    {
        // options
        foreach ($config['command']['options'] as $name => $option) {
            $this->addOption($name, $option);
        }

        // commands
        $commands = CommandLine\Commands::getInstance()
                            ->setPath($paths['configs'] . 'commands');
        foreach ($commands as $name => $data) {
            $this->registerCommand($name, $data);

        }

        return $this;
    }
private function configureCommand($paths, $config)
    {
        // options
        foreach ($config['command']['options'] as $name => $option) {
            $this->addOption($name, $option);
        }

        // commands
        $commands = CommandLine\Commands::getInstance()
                            ->setPath($paths['configs'] . 'commands');
        foreach ($commands as $name => $data) {
            $this->registerCommand($name, $data);

        }

        return $this;
    }
private function configureCommand ( $ paths , $ config ) { // options foreach ( $ config [ 'command' ] [ 'options' ] as $ name => $ option ) { $ this -> addOption ( $ name , $ option ) ; } // commands $ commands = CommandLine \ Commands :: getInstance ( ) -> setPath ( $ paths [ 'configs' ] . 'commands' ) ; foreach ( $ commands as $ name => $ data ) { $ this -> registerCommand ( $ name , $ data ) ; } return $ this ; }
Fine tune main command by adding subcommands

@para array $paths Paths to various Phrozn directories
@param array $config Loaded contents of phrozn.yml

@return \Phrozn\Runner\Command
Fine tune main command by adding subcommands