Skip to content

[Console] Default ansi option to null #44176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ protected function getDefaultInputDefinition()
new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'),
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'),
new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'),
new InputOption('--ansi', '', InputOption::VALUE_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', false),
new InputOption('--ansi', '', InputOption::VALUE_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', null),
new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
]);
}
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Console/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CHANGELOG
* Add support for bright colors
* Add `#[AsCommand]` attribute for declaring commands on PHP 8
* Add `Helper::width()` and `Helper::length()`
* The `--ansi` and `--no-ansi` options now default to `null`.

5.2.0
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -230,7 +230,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down
10 changes: 5 additions & 5 deletions src/Symfony/Component/Console/Tests/Fixtures/application_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -243,7 +243,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -318,7 +318,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -409,7 +409,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -481,7 +481,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -234,7 +234,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down Expand Up @@ -325,7 +325,7 @@ Force (or disable --no-ansi) ANSI output
* Is value required: no
* Is multiple: no
* Is negatable: yes
* Default: `false`
* Default: `NULL`

#### `--no-interaction|-n`

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy