Skip to content

Commit ab3bf8a

Browse files
committed
[WIP] Use -@ instead of -s as short version of --include-version
TODO: Make Spectre.Console.Cli support short options named with something other than letters.
1 parent 8e85ffc commit ab3bf8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/nugraph/GraphCommandSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal sealed class GraphCommandSettings : CommandSettings
8484
[DefaultValue(DefaultTitle)]
8585
public string Title { get; set; } = "";
8686

87-
[CommandOption("-s|--include-version")]
87+
[CommandOption("-@|--include-version")]
8888
[Description("Include package versions in the dependency graph nodes, e.g. [b]Serilog@4.3.0[/] instead of [b]Serilog[/]")]
8989
[DefaultValue(false)]
9090
public bool GraphIncludeVersions { get; init; }

tests/nugraph.Tests/NugraphTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Serilog root
109109

110110
[Test]
111111
[Arguments("--include-version")]
112-
[Arguments("-s")]
112+
[Arguments("-@")]
113113
public async Task Package_Serilog_401_net60_IncludeVersion(string option)
114114
{
115115
var result = await nugraph.RunAsync(["Serilog@4.0.1", "--framework", "net6.0", option]);

0 commit comments

Comments
 (0)