public function help()
    {
        $this->usage(false);
        echo "\n";
        echo "available options:";
        echo "\n";

        foreach (self::$OPTIONS as $option) {
            list($long, $short, $mode, $comment) = $option;
            if ($mode == pakeGetopt::REQUIRED_ARGUMENT) {
                if (preg_match('/\b([A-Z]{2,})\b/', $comment, $match))
                    $long .= '='.$match[1];
            }

            printf("  %-20s", pakeColor::colorize($long, 'INFO'));
            if (!empty($short)) {
                printf(" (%s)", pakeColor::colorize($short, 'INFO'));
            }
            printf("\n      %s\n", $comment);
        }
    }
public function help()
    {
        $this->usage(false);
        echo "\n";
        echo "available options:";
        echo "\n";

        foreach (self::$OPTIONS as $option) {
            list($long, $short, $mode, $comment) = $option;
            if ($mode == pakeGetopt::REQUIRED_ARGUMENT) {
                if (preg_match('/\b([A-Z]{2,})\b/', $comment, $match))
                    $long .= '='.$match[1];
            }

            printf("  %-20s", pakeColor::colorize($long, 'INFO'));
            if (!empty($short)) {
                printf(" (%s)", pakeColor::colorize($short, 'INFO'));
            }
            printf("\n      %s\n", $comment);
        }
    }
public function help ( ) { $ this -> usage ( false ) ; echo "\n" ; echo "available options:" ; echo "\n" ; foreach ( self :: $ OPTIONS as $ option ) { list ( $ long , $ short , $ mode , $ comment ) = $ option ; if ( $ mode == pakeGetopt :: REQUIRED_ARGUMENT ) { if ( preg_match ( '/\b([A-Z]{2,})\b/' , $ comment , $ match ) ) $ long .= '=' . $ match [ 1 ] ; } printf ( "  %-20s" , pakeColor :: colorize ( $ long , 'INFO' ) ) ; if ( ! empty ( $ short ) ) { printf ( " (%s)" , pakeColor :: colorize ( $ short , 'INFO' ) ) ; } printf ( "\n      %s\n" , $ comment ) ; } }
Display the pake command line help.
Display the pake command line help .