Library/Phalcon/Commands/Command.php
public function printParameters($parameters)
    {
        $length = 0;
        foreach ($parameters as $parameter => $description) {
            if ($length == 0) {
                $length = strlen($parameter);
            }
            if (strlen($parameter) > $length) {
                $length = strlen($parameter);
            }
        }

        print Color::head('Options:') . PHP_EOL;
        foreach ($parameters as $parameter => $description) {
            print Color::colorize(' --' . $parameter . str_repeat(' ', $length - strlen($parameter)), Color::FG_GREEN);
            print Color::colorize("    " . $description) . PHP_EOL;
        }
    }
public function printParameters($parameters)
    {
        $length = 0;
        foreach ($parameters as $parameter => $description) {
            if ($length == 0) {
                $length = strlen($parameter);
            }
            if (strlen($parameter) > $length) {
                $length = strlen($parameter);
            }
        }

        print Color::head('Options:') . PHP_EOL;
        foreach ($parameters as $parameter => $description) {
            print Color::colorize(' --' . $parameter . str_repeat(' ', $length - strlen($parameter)), Color::FG_GREEN);
            print Color::colorize("    " . $description) . PHP_EOL;
        }
    }
public function printParameters ( $ parameters ) { $ length = 0 ; foreach ( $ parameters as $ parameter => $ description ) { if ( $ length == 0 ) { $ length = strlen ( $ parameter ) ; } if ( strlen ( $ parameter ) > $ length ) { $ length = strlen ( $ parameter ) ; } } print Color :: head ( 'Options:' ) . PHP_EOL ; foreach ( $ parameters as $ parameter => $ description ) { print Color :: colorize ( ' --' . $ parameter . str_repeat ( ' ' , $ length - strlen ( $ parameter ) ) , Color :: FG_GREEN ) ; print Color :: colorize ( "    " . $ description ) . PHP_EOL ; } }
Prints the available options in the script

@param array $parameters
Prints the available options in the script