Bit3\FakerCli\Command\GenerateCommand::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('faker:generate')->addOption('locale', 'l', InputOption::VALUE_REQUIRED, 'The locale to use.', Factory::DEFAULT_LOCALE)->addOption('seed', 's', InputOption::VALUE_REQUIRED, 'The generators seed.')->addOption('pattern', 'p', InputOption::VALUE_REQUIRED, 'The printf pattern.', '%s')->addOption('delimiter', 'd', InputOption::VALUE_REQUIRED, 'The delimiter is used by the csv and printf format.', ',')->addOption('enclosure', 'e', InputOption::VALUE_REQUIRED, 'The enclosure is used by the csv and printf format.')->addOption('escape', 'E', InputOption::VALUE_REQUIRED, 'The escape character is used by the printf format.', '\\')->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'The output format (json, xml, csv, php, printf, vprintf)', 'printf')->addOption('count', 'c', InputArgument::OPTIONAL, 'The count of generated data.', 10)->addArgument('type', InputArgument::REQUIRED, 'The data type to generate (e.g. "randomDigit", "words", "name", "city")')->addArgument('args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Arguments for the type, e.g. "words 5" will generate 5 words.');
    }