MiniAsset\Cli\BuildTask::addArguments PHP Method

addArguments() protected method

Define the CLI options.
protected addArguments ( ) : void
return void
    protected function addArguments()
    {
        $this->cli->arguments->add(['help' => ['prefix' => 'h', 'longPrefix' => 'help', 'description' => 'Display this help.', 'noValue' => true], 'force' => ['prefix' => 'f', 'longPrefix' => 'force', 'description' => 'Force re-build assets. Ignores freshness of generated files.', 'noValue' => true], 'verbose' => ['prefix' => 'v', 'longPrefix' => 'verbose', 'description' => 'Enable verbose output.', 'noValue' => true], 'bootstrap' => ['prefix' => 'b', 'longPrefix' => 'bootstrap', 'description' => 'Comma separated list of files to include bootstrap your ' . 'application\\s environment.', 'defaultValue' => ''], 'config' => ['prefix' => 'c', 'longPrefix' => 'config', 'description' => 'The config file to use.', 'required' => true]]);
    }

Usage Example

Beispiel #1
0
 protected function addArguments()
 {
     parent::addArguments();
     $this->cli->arguments->add(['list' => ['prefix' => 'l', 'longPrefix' => 'list', 'description' => 'List Cobbler\'s own asset package configs available for turnout', 'noValue' => true]]);
 }