Netson\L4gettext\Commands\ExtractCommand::getOptions PHP Method

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array
    protected function getOptions()
    {
        /**
         * set defaults
         */
        $binary = Config::get("l4gettext::config.xgettext.binary");
        $defaults = array('binary' => isset($binary) == true ? $binary : "xgettext", 'binary_path' => Config::get("l4gettext::config.xgettext.binary_path"), 'language' => Config::get("l4gettext::config.xgettext.language"), 'comments' => Config::get("l4gettext::config.xgettext.comments"), 'force_po' => Config::get("l4gettext::config.xgettext.force_po"), 'input_folder' => Config::get("l4gettext::config.xgettext.input_folder"), 'views_folder' => Config::get("l4gettext::config.compiler.input_folder"), 'additional_input_folders' => Config::get("l4gettext::config.xgettext.additional_input_folders"), 'output_folder' => Config::get("l4gettext::config.xgettext.output_folder"), 'from_code' => Config::get("l4gettext::config.xgettext.from_code"), 'copyright_holder' => Config::get("l4gettext::config.xgettext.copyright_holder"), 'package_name' => Config::get("l4gettext::config.xgettext.package_name"), 'package_version' => Config::get("l4gettext::config.xgettext.package_version"), 'email_address' => Config::get("l4gettext::config.xgettext.email_address"), 'keywords' => Config::get("l4gettext::config.xgettext.keywords"), 'levels' => Config::get("l4gettext::config.compiler.levels"));
        /**
         * return the options array
         */
        return array(array('binary', 'b', InputOption::VALUE_REQUIRED, 'The name of your xgettext binary', $defaults['binary']), array('binary_path', 'p', InputOption::VALUE_REQUIRED, 'The path to your xgettext binary, without a trailing slash', $defaults['binary_path']), array('language', 'l', InputOption::VALUE_REQUIRED, 'The script/programming language of the files to be scanned', $defaults['language']), array('comments', 'c', InputOption::VALUE_REQUIRED, 'The docbloc text to scan for', $defaults['comments']), array('force_po', 'f', InputOption::VALUE_REQUIRED, 'Forces the creation of a .pot file regardless of any translation strings found (bool)', $defaults['force_po']), array('input_folder', 'i', InputOption::VALUE_REQUIRED, 'The input folder to scan for .php files, relative to the app/ folder', $defaults['input_folder']), array('views_folder', 'w', InputOption::VALUE_REQUIRED, 'The views folder to scan for .php files, relative to the app/ folder', $defaults['views_folder']), array('additional_input_folders', 'd', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Additional input folders to scan for php files, relative to the application root [/] folder', $defaults['additional_input_folders']), array('output_folder', 'o', InputOption::VALUE_REQUIRED, 'The output folder to scan for .php files, relative to the app/storage folder', $defaults['output_folder']), array('from_code', 'e', InputOption::VALUE_REQUIRED, 'The encoding of the source files', $defaults['from_code']), array('copyright_holder', 'a', InputOption::VALUE_REQUIRED, 'The copyright holder/author of the source translations', $defaults['copyright_holder']), array('package_name', 'y', InputOption::VALUE_REQUIRED, 'The package name', $defaults['package_name']), array('package_version', 'x', InputOption::VALUE_REQUIRED, 'The package version', $defaults['package_version']), array('email_address', 'm', InputOption::VALUE_REQUIRED, 'The email address of the author', $defaults['email_address']), array('keywords', 'k', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'The keywords to search for in the source files', $defaults['keywords']), array('additional_keywords', 'z', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Keywords in addition to the default keywords'), array('levels', 's', InputOption::VALUE_REQUIRED, 'The number of subdirectories to scan for templates', $defaults['levels']), array('join-existing', 'j', null, 'Join with existing results'));
    }