You are here

protected function LessAutoprefixer::command_arguments in Less CSS Preprocessor 7.4

Same name and namespace in other branches
  1. 8 classes/class.lessautoprefixer.inc \LessAutoprefixer::command_arguments()

Provides list to command line arguments for execution.

Return value

array Array of command line arguments.

1 call to LessAutoprefixer::command_arguments()
LessAutoprefixer::compile in classes/class.lessautoprefixer.inc
Executes auto-prefixing of LESS output file.

File

classes/class.lessautoprefixer.inc, line 83
Contains 'LessAutoprefixer' class; an abstraction layer for command line Autoprefixer.

Class

LessAutoprefixer
'Autoprefixer' class.

Code

protected function command_arguments() {
  $arguments = array();

  // Set service map flags.
  if ($this->source_maps_enabled) {
    $arguments[] = '--map';
    $arguments[] = '--inline-map';
  }

  // Input file should be last argument.
  $arguments[] = $this->input_file;
  return $arguments;
}