Closed roumcha closed 11 months ago
The diff is very large because ConsoleAppEngine.cs
had a lot of LF, and I accidentally changed them all into CRLF... Would it be better to recreate my commits?
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Problems
CommandAttribute
has a constructor with multiple names (hereinafter called aliases), but it still has some problems. I guess that's the reason it's not officially introduced in readme.md.An example for [3]
code: ```csharp [Command(new[] {"class1", "class2"})] class App : ConsoleAppBase { [Command(new[] { "command1", "command2" }, "desc")] public void Sample() { Console.WriteLine("Hello!"); } } ``` The help text for the code above would be: ```text class1, class2 command1, command2 desc ``` It's hard to see which is the parent's name and which is the method's at a glance.What this PR will do
To solve [1] and [3], this PR will:
not show aliases in command list in help messages
add "Aliases: ..." line to the help text for commands which have aliases
What this PR won't do: