Skip to content

Commit 84dcea3

Browse files
committed
Remove confusing and duplicate -v for version
1 parent f02c04a commit 84dcea3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/dotnet-retest/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
{
3030
config.SetHelpProvider(new Helper(config.Settings));
3131
config.SetApplicationName("dotnet retest");
32-
config.SetApplicationVersion(ThisAssembly.Project.Version);
3332

3433
if (Environment.GetEnvironmentVariables().Contains("NO_COLOR") &&
3534
config.Settings.HelpProviderStyles?.Options is { } options)

src/dotnet-retest/RetestCommand.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ async Task<BufferedCommandResult> RunTestsAsync(string dotnet, List<string> args
278278

279279
public class RetestSettings : CommandSettings
280280
{
281+
[Description("Prints version information")]
282+
[CommandOption("--version")]
283+
public bool Version { get; init; }
284+
281285
[Description("Maximum retries when re-running failed tests")]
282286
[CommandOption("--retries")]
283287
[DefaultValue(3)]

src/dotnet-retest/help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ USAGE:
55
OPTIONS:
66
DEFAULT
77
-h, --help Prints help information
8-
-v, --version Prints version information
8+
--version Prints version information
99
--retries 3 Maximum retries when re-running failed tests
1010
--no-summary Whether to emit a summary to console/GitHub
1111
--output Include test output in report

0 commit comments

Comments
 (0)