src/Command/Generate/AbstractGenerateCommand.php
protected function validateTableArgument() : void
    {
        $table = $this->getInput()->getArgument('table');

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

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

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

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

@return void
@throws \Bluzman\Input\InputException