public static function configureInput(InputDefinition $definition)
    {
        $definition->addOption(new InputOption(
            'date-fmt',
            null,
            InputOption::VALUE_REQUIRED,
            'The date format (as a PHP date format string)',
            // @todo refactor so this can be non-static and use injected config
            (new Config())->getWithDefault('application.date_format', 'c')
        ));
    }
public static function configureInput(InputDefinition $definition)
    {
        $definition->addOption(new InputOption(
            'date-fmt',
            null,
            InputOption::VALUE_REQUIRED,
            'The date format (as a PHP date format string)',
            // @todo refactor so this can be non-static and use injected config
            (new Config())->getWithDefault('application.date_format', 'c')
        ));
    }
public static function configureInput ( InputDefinition $ definition ) { $ definition -> addOption ( new InputOption ( 'date-fmt' , null , InputOption :: VALUE_REQUIRED , 'The date format (as a PHP date format string)' , // @todo refactor so this can be non-static and use injected config ( new Config ( ) ) -> getWithDefault ( 'application.date_format' , 'c' ) ) ) ; }
Add options to a command's input definition.

@param InputDefinition $definition
Add options to a command s input definition .