src/Console/Completion/ZshGenerator.php
public function commandFlags(CommandInterface $cmd, $cmdSignature)
    {
        $args = [];
        $specs = $cmd->getOptionCollection();
        /*
        '(- 1 *)--version[display version and copyright information]' \
        '(- 1 *)--help[print a short help statement]' \
        */
        foreach ($specs->options as $opt) {
            $args[] = $this->optionFlagItem($opt, $cmdSignature);
        }

        return empty($args) ? null : $args;
    }
public function commandFlags(CommandInterface $cmd, $cmdSignature)
    {
        $args = [];
        $specs = $cmd->getOptionCollection();
        /*
        '(- 1 *)--version[display version and copyright information]' \
        '(- 1 *)--help[print a short help statement]' \
        */
        foreach ($specs->options as $opt) {
            $args[] = $this->optionFlagItem($opt, $cmdSignature);
        }

        return empty($args) ? null : $args;
    }
public function commandFlags ( CommandInterface $ cmd , $ cmdSignature ) { $ args = [ ] ; $ specs = $ cmd -> getOptionCollection ( ) ; /*
        '(- 1 *)--version[display version and copyright information]' \
        '(- 1 *)--help[print a short help statement]' \
        */ foreach ( $ specs -> options as $ opt ) { $ args [ ] = $ this -> optionFlagItem ( $ opt , $ cmdSignature ) ; } return empty ( $ args ) ? null : $ args ; }
Return the zsh array code of the flags of a command.

@return string[]
Return the zsh array code of the flags of a command .