diff --git a/src/System.CommandLine.Tests/Help/Approvals/HelpBuilderTests.Help_layout_has_not_changed.approved.txt b/src/System.CommandLine.Tests/Help/Approvals/HelpBuilderTests.Help_layout_has_not_changed.approved.txt index 79cc177654..2fb90ef354 100644 --- a/src/System.CommandLine.Tests/Help/Approvals/HelpBuilderTests.Help_layout_has_not_changed.approved.txt +++ b/src/System.CommandLine.Tests/Help/Approvals/HelpBuilderTests.Help_layout_has_not_changed.approved.txt @@ -12,13 +12,13 @@ Arguments: the-root-arg-enum-default-description [default: Read] Options: - -trna, --the-root-option-no-arg (REQUIRED) the-root-option-no-arg-description - -trondda, --the-root-option-no-description-default-arg [default: the-root-option--no-description-default-arg-value] - -tronda, --the-root-option-no-default-arg (REQUIRED) the-root-option-no-default-description - -troda, --the-root-option-default-arg the-root-option-default-arg-description [default: the-root-option-arg-value] - -troea, --the-root-option-enum-arg the-root-option-description [default: Read] - -trorea, --the-root-option-required-enum-arg (REQUIRED) the-root-option-description [default: Read] - -tromld, --the-root-option-multi-line-description the-root-option - multi-line - description + -trna, --the-root-option-no-arg (REQUIRED) the-root-option-no-arg-description + -trondda, --the-root-option-no-description-default-arg [default: the-root-option--no-description-default-arg-value] + -tronda, --the-root-option-no-default-arg (REQUIRED) the-root-option-no-default-description + -troda, --the-root-option-default-arg the-root-option-default-arg-description [default: the-root-option-arg-value] + -troea, --the-root-option-enum-arg the-root-option-description [default: Read] + -trorea, --the-root-option-required-enum-arg (REQUIRED) the-root-option-description [default: Read] + -tromld, --the-root-option-multi-line-description the-root-option + multi-line + description diff --git a/src/System.CommandLine.Tests/Help/HelpBuilderTests.Customization.cs b/src/System.CommandLine.Tests/Help/HelpBuilderTests.Customization.cs index b103f18162..c3d73d818f 100644 --- a/src/System.CommandLine.Tests/Help/HelpBuilderTests.Customization.cs +++ b/src/System.CommandLine.Tests/Help/HelpBuilderTests.Customization.cs @@ -45,7 +45,7 @@ public void Option_can_customize_displayed_default_value() _helpBuilder.Write(command, _console); var expected = $"Options:{NewLine}" + - $"{_indentation}--the-option{_columnPadding}[default: 42]{NewLine}{NewLine}"; + $"{_indentation}--the-option {_columnPadding}[default: 42]{NewLine}{NewLine}"; _console.ToString().Should().Contain(expected); } @@ -245,9 +245,9 @@ public void Customize_throws_when_symbol_is_null() [Theory] - [InlineData(false, false, "--option \\s*description")] + [InlineData(false, false, "--option