Verb aliases by johnjaylward · Pull Request #636 · commandlineparser/commandline
@moh-hassan
This is the call I am referring to: https://github.com/commandlineparser/commandline/pull/636/files#diff-88c7f4706542a25c9d5ec8b7a7b49bd5R853
As can be seen in the diff the first parameter (short name) used to be string.Empty and the verb name was passed as the second parameter (long name).
After passing both the verb name and possible aliases to the long name parameter as shown in my earlier example my expected help text was indented/aligned like it was before this PR.
Can this may to related to the Configuration of Git to handle line endings?
I guess I cannot 100% rule that out but I do not think so.
Sorry if I did not explain it clearly enough, I'm talking about the spacing in the help that is added between the verb and help text:
help <this added space> Display more information on a specific command.
Can Your suggestion cause some tests to fail?
It will cause these instances of theory tests to fail:
- Issue6Tests.cs - Line 88
- Issue6Tests.cs - Line 96
- Issue6Tests.cs - Line 163
- Issue6Tests.cs - Line 170
But these tests are expecting wrong outputs I think.
It isn't very easy to see in the InlineData of lines 163 and 170 but in the data of lines 88 and 96 you can see that the help text for delete, help and version are not lining up correctly with copy, cp, cpy.
The data of line 88 for example currently looks like this:
[InlineData("--help", true, new string[] { "copy, cp, cpy (Default Verb) Copy some stuff", "move, mv", "delete Delete stuff", "help Display more information on a specific command.", "version Display version information.", })]
But should have looked like this instead:
[InlineData("--help", true, new string[] { "copy, cp, cpy (Default Verb) Copy some stuff", "move, mv", "delete Delete stuff", "help Display more information on a specific command.", "version Display version information.", })]