symfony/AsseticBundle — pull request #98 by jeremymarc (2012-07-20 21:27:45+00:00)
Title: [Command] Fix wrong debug mode when calling assetic:dump with --no-debug

As the --no-debug option is a setting used by the console to create the kernel and not a setting for the command, to display the debug mode, the command must not rely on $input->getOption('no-debug') but on $this->am->isDebug().

For example, calling assetic:dump with this these arguments will output in all case "Debug mode is off" although if it's "on" in the config file.

$command = $this->getApplication()->find('
$arguments =
'command' => 'assetic:dump',
'write_to' => 'web',
'--no-debug' => true,
);