src/Command/AbstractCommand.php
protected function validateModuleArgument() : void
    {
        $module = $this->getInput()->getArgument('module');

        $validator = Validator::create()
            ->string()
            ->alphaNumeric('-_')
            ->noWhitespace();

        if ($this->getDefinition()->getArgument('module')->isRequired()
            && !$validator->validate($module)) {
            throw new InputException($validator->getError());
        }
    }
protected function validateModuleArgument() : void
    {
        $module = $this->getInput()->getArgument('module');

        $validator = Validator::create()
            ->string()
            ->alphaNumeric('-_')
            ->noWhitespace();

        if ($this->getDefinition()->getArgument('module')->isRequired()
            && !$validator->validate($module)) {
            throw new InputException($validator->getError());
        }
    }
Validate Module Argument

@return void
@throws \Bluzman\Input\InputException