From dda0f171d703259c08f503332ac2b0533f80b50e Mon Sep 17 00:00:00 2001 From: Nick Lucas Date: Sat, 4 Feb 2017 12:00:46 +0000 Subject: [PATCH 1/2] Add list to example project --- test/Example/CommandLine/PrimaryCliArguments.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Example/CommandLine/PrimaryCliArguments.cs b/test/Example/CommandLine/PrimaryCliArguments.cs index ac81930..fc59851 100644 --- a/test/Example/CommandLine/PrimaryCliArguments.cs +++ b/test/Example/CommandLine/PrimaryCliArguments.cs @@ -58,5 +58,9 @@ public PrimaryCliArguments() : base("Example Project") { } [Option(ShortName: 'c')] [Help("A test option. Does nothing")] public bool Option3 { get; set; } + + [Operand(Position: 2)] + [Help("A test list, used when checking help-generator output")] + public List ListOperands { get; set; } } } From c59caebd94ab03e795b672b805a12bc0a0ba9e15 Mon Sep 17 00:00:00 2001 From: Nick Lucas Date: Sat, 4 Feb 2017 12:14:08 +0000 Subject: [PATCH 2/2] Print generics correctly. Simple implementation which may break when unsupported generic types are used, but those already had potential problems --- src/EntryPoint/Arguments/CliArgumentsHelp.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/EntryPoint/Arguments/CliArgumentsHelp.cs b/src/EntryPoint/Arguments/CliArgumentsHelp.cs index 49830de..007f0ac 100644 --- a/src/EntryPoint/Arguments/CliArgumentsHelp.cs +++ b/src/EntryPoint/Arguments/CliArgumentsHelp.cs @@ -74,6 +74,7 @@ static string GenerateBreakdown(List