src/Argument/Manager.php
protected function isArgument($argument, $command_argument)
    {
        $possibilities = [
            $argument->prefix()     => "-{$argument->prefix()}",
            $argument->longPrefix() => "--{$argument->longPrefix()}",
        ];

        foreach ($possibilities as $key => $search) {
            if ($key && strpos($command_argument, $search) === 0) {
                return true;
            }
        }

        return false;
    }
protected function isArgument($argument, $command_argument)
    {
        $possibilities = [
            $argument->prefix()     => "-{$argument->prefix()}",
            $argument->longPrefix() => "--{$argument->longPrefix()}",
        ];

        foreach ($possibilities as $key => $search) {
            if ($key && strpos($command_argument, $search) === 0) {
                return true;
            }
        }

        return false;
    }
protected function isArgument ( $ argument , $ command_argument ) { $ possibilities = [ $ argument -> prefix ( ) => "-{$argument->prefix()}" , $ argument -> longPrefix ( ) => "--{$argument->longPrefix()}" , ] ; foreach ( $ possibilities as $ key => $ search ) { if ( $ key && strpos ( $ command_argument , $ search ) === 0 ) { return true ; } } return false ; }
Check if the defined argument matches the command argument.

@param Argument $argument
@param string $command_argument

@return bool
Check if the defined argument matches the command argument .