Skip to content

Commit

Permalink
Default ansi option to null
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Nov 21, 2021
1 parent 9523e73 commit 3e7ab8f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Application.php
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 CHANGELOG.md
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
4 changes: 2 additions & 2 deletions Tests/Fixtures/application_1.md
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 Tests/Fixtures/application_2.md
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
6 changes: 3 additions & 3 deletions Tests/Fixtures/application_mbstring.md
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

0 comments on commit 3e7ab8f

Please sign in to comment.