function getHelpArgs($command)
    {
        if (isset($this->commands[$command]['options']) &&
            count($this->commands[$command]['options']))
        {
            $help = "Options:\n";
            foreach ($this->commands[$command]['options'] as $k => $v) {
                if (isset($v['arg'])) {
                    if ($v['arg'][0] == '(') {
                        $arg = substr($v['arg'], 1, -1);
                        $sapp = " [$arg]";
                        $lapp = "[=$arg]";
                    } else {
                        $sapp = " $v[arg]";
                        $lapp = "=$v[arg]";
                    }
                } else {
                    $sapp = $lapp = "";
                }

                if (isset($v['shortopt'])) {
                    $s = $v['shortopt'];
                    $help .= "  -$s$sapp, --$k$lapp\n";
                } else {
                    $help .= "  --$k$lapp\n";
                }

                $p = "        ";
                $doc = rtrim(str_replace("\n", "\n$p", $v['doc']));
                $help .= "        $doc\n";
            }

            return $help;
        }

        return null;
    }
function getHelpArgs($command)
    {
        if (isset($this->commands[$command]['options']) &&
            count($this->commands[$command]['options']))
        {
            $help = "Options:\n";
            foreach ($this->commands[$command]['options'] as $k => $v) {
                if (isset($v['arg'])) {
                    if ($v['arg'][0] == '(') {
                        $arg = substr($v['arg'], 1, -1);
                        $sapp = " [$arg]";
                        $lapp = "[=$arg]";
                    } else {
                        $sapp = " $v[arg]";
                        $lapp = "=$v[arg]";
                    }
                } else {
                    $sapp = $lapp = "";
                }

                if (isset($v['shortopt'])) {
                    $s = $v['shortopt'];
                    $help .= "  -$s$sapp, --$k$lapp\n";
                } else {
                    $help .= "  --$k$lapp\n";
                }

                $p = "        ";
                $doc = rtrim(str_replace("\n", "\n$p", $v['doc']));
                $help .= "        $doc\n";
            }

            return $help;
        }

        return null;
    }
function getHelpArgs ( $ command ) { if ( isset ( $ this -> commands [ $ command ] [ 'options' ] ) && count ( $ this -> commands [ $ command ] [ 'options' ] ) ) { $ help = "Options:\n" ; foreach ( $ this -> commands [ $ command ] [ 'options' ] as $ k => $ v ) { if ( isset ( $ v [ 'arg' ] ) ) { if ( $ v [ 'arg' ] [ 0 ] == '(' ) { $ arg = substr ( $ v [ 'arg' ] , 1 , - 1 ) ; $ sapp = " [$arg]" ; $ lapp = "[=$arg]" ; } else { $ sapp = " $v[arg]" ; $ lapp = "=$v[arg]" ; } } else { $ sapp = $ lapp = "" ; } if ( isset ( $ v [ 'shortopt' ] ) ) { $ s = $ v [ 'shortopt' ] ; $ help .= "  -$s$sapp, --$k$lapp\n" ; } else { $ help .= "  --$k$lapp\n" ; } $ p = "        " ; $ doc = rtrim ( str_replace ( "\n" , "\n$p" , $ v [ 'doc' ] ) ) ; $ help .= "        $doc\n" ; } return $ help ; } return null ; }
Returns the help for the accepted arguments of a command

@param  string $command
@return string The help string
Returns the help for the accepted arguments of a command