```php $output->writeln( (int) (new QuestionHelper())->ask( $input, $output, new ConfirmationQuestion('yes or no?', false) ) ); ``` I expect running this as `yes | ./bin/console foo` will output `1`, but outputs `0`. Problem is QuestionHelper [slaps there always default value when it detects noninteractive mode](https://github.com/symfony/symfony/blob/8f995e6c07e1d50d6d66a84fae0a1adf75f1fc1c/src/Symfony/Component/Console/Helper/QuestionHelper.php#L50-L66). Maybe non interactive mode detection could be improved, since `yes` command clearly interacts with application.