Skip to content

Commit 45383ce

Browse files
In response to review
1 parent 2acce54 commit 45383ce

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/System.CommandLine.Subsystems/HelpSubsystem.cs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.CommandLine.Subsystems.Annotations;
55
using System.CommandLine.Subsystems;
6-
using static System.Runtime.InteropServices.JavaScript.JSType;
76

87
namespace System.CommandLine;
98

@@ -16,22 +15,24 @@ namespace System.CommandLine;
1615
// var command = new CliCommand("greet")
1716
// .With(help.Description, "Greet the user");
1817
//
19-
public class HelpSubsystem(IAnnotationProvider? annotationProvider = null)
18+
public class HelpSubsystem(IAnnotationProvider? annotationProvider = null)
2019
: CliSubsystem(HelpAnnotations.Prefix, SubsystemKind.Help, annotationProvider)
2120
{
22-
public CliOption<bool> HelpOption { get; } =new CliOption<bool>("--help", ["-h"])
23-
{
24-
// TODO: Why don't we accept bool like any other bool option?
25-
Arity = ArgumentArity.Zero
26-
};
21+
public CliOption<bool> HelpOption { get; } = new CliOption<bool>("--help", ["-h"])
22+
{
23+
// TODO: Why don't we accept bool like any other bool option?
24+
Arity = ArgumentArity.Zero
25+
};
2726

28-
public void SetDescription(CliSymbol symbol, string description)
27+
public void SetDescription(CliSymbol symbol, string description)
2928
=> SetAnnotation(symbol, HelpAnnotations.Description, description);
30-
public string GetDescription(CliSymbol symbol)
29+
30+
public string GetDescription(CliSymbol symbol)
3131
=> TryGetAnnotation<string>(symbol, HelpAnnotations.Description, out var value)
3232
? value
3333
: "";
34-
public AnnotationAccessor<string> Description
34+
35+
public AnnotationAccessor<string> Description
3536
=> new(this, HelpAnnotations.Description);
3637

3738
protected internal override CliConfiguration Initialize(InitializationContext context)

0 commit comments

Comments
 (0)