private function cleanExtraCommandArgument(Command $command): void
    {
        $arguments = $command->getDefinition()->getArguments();
        if (! isset($arguments['command'])) {
            return;
        }

        unset($arguments['command']);
        $command->getDefinition()->setArguments($arguments);
    }
private function cleanExtraCommandArgument(Command $command): void
    {
        $arguments = $command->getDefinition()->getArguments();
        if (! isset($arguments['command'])) {
            return;
        }

        unset($arguments['command']);
        $command->getDefinition()->setArguments($arguments);
    }
private function cleanExtraCommandArgument ( Command $ command ) : void { $ arguments = $ command -> getDefinition ( ) -> getArguments ( ) ; if ( ! isset ( $ arguments [ 'command' ] ) ) { return ; } unset ( $ arguments [ 'command' ] ) ; $ command -> getDefinition ( ) -> setArguments ( $ arguments ) ; }
Sometimes there is "command" argument,
not really needed on fail of missing argument
Sometimes there is command argument not really needed on fail of missing argument