Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b45280

Browse files
committed
Default ansi option to null
1 parent 2e950c6 commit 8b45280

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ protected function getDefaultInputDefinition()
10401040
new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'),
10411041
new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'),
10421042
new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'),
1043-
new InputOption('--ansi', '', InputOption::VALUE_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', false),
1043+
new InputOption('--ansi', '', InputOption::VALUE_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', null),
10441044
new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
10451045
]);
10461046
}

src/Symfony/Component/Console/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CHANGELOG
1212
* Add support for bright colors
1313
* Add `#[AsCommand]` attribute for declaring commands on PHP 8
1414
* Add `Helper::width()` and `Helper::length()`
15+
* The `--ansi` and `--no-ansi` options now default to `null`.
1516

1617
5.2.0
1718
-----

src/Symfony/Component/Console/Tests/Fixtures/application_1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Force (or disable --no-ansi) ANSI output
103103
* Is value required: no
104104
* Is multiple: no
105105
* Is negatable: yes
106-
* Default: `false`
106+
* Default: `NULL`
107107

108108
#### `--no-interaction|-n`
109109

@@ -230,7 +230,7 @@ Force (or disable --no-ansi) ANSI output
230230
* Is value required: no
231231
* Is multiple: no
232232
* Is negatable: yes
233-
* Default: `false`
233+
* Default: `NULL`
234234

235235
#### `--no-interaction|-n`
236236

src/Symfony/Component/Console/Tests/Fixtures/application_2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Force (or disable --no-ansi) ANSI output
116116
* Is value required: no
117117
* Is multiple: no
118118
* Is negatable: yes
119-
* Default: `false`
119+
* Default: `NULL`
120120

121121
#### `--no-interaction|-n`
122122

@@ -243,7 +243,7 @@ Force (or disable --no-ansi) ANSI output
243243
* Is value required: no
244244
* Is multiple: no
245245
* Is negatable: yes
246-
* Default: `false`
246+
* Default: `NULL`
247247

248248
#### `--no-interaction|-n`
249249

@@ -318,7 +318,7 @@ Force (or disable --no-ansi) ANSI output
318318
* Is value required: no
319319
* Is multiple: no
320320
* Is negatable: yes
321-
* Default: `false`
321+
* Default: `NULL`
322322

323323
#### `--no-interaction|-n`
324324

@@ -409,7 +409,7 @@ Force (or disable --no-ansi) ANSI output
409409
* Is value required: no
410410
* Is multiple: no
411411
* Is negatable: yes
412-
* Default: `false`
412+
* Default: `NULL`
413413

414414
#### `--no-interaction|-n`
415415

@@ -481,7 +481,7 @@ Force (or disable --no-ansi) ANSI output
481481
* Is value required: no
482482
* Is multiple: no
483483
* Is negatable: yes
484-
* Default: `false`
484+
* Default: `NULL`
485485

486486
#### `--no-interaction|-n`
487487

src/Symfony/Component/Console/Tests/Fixtures/application_mbstring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Force (or disable --no-ansi) ANSI output
107107
* Is value required: no
108108
* Is multiple: no
109109
* Is negatable: yes
110-
* Default: `false`
110+
* Default: `NULL`
111111

112112
#### `--no-interaction|-n`
113113

@@ -234,7 +234,7 @@ Force (or disable --no-ansi) ANSI output
234234
* Is value required: no
235235
* Is multiple: no
236236
* Is negatable: yes
237-
* Default: `false`
237+
* Default: `NULL`
238238

239239
#### `--no-interaction|-n`
240240

@@ -325,7 +325,7 @@ Force (or disable --no-ansi) ANSI output
325325
* Is value required: no
326326
* Is multiple: no
327327
* Is negatable: yes
328-
* Default: `false`
328+
* Default: `NULL`
329329

330330
#### `--no-interaction|-n`
331331

0 commit comments

Comments
 (0)