dotnet / dotnet/command-line-api
Usage showing wrong filename if .exe not used when calling program
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Let's say I've got a program called _Foo.Bar.CLI.exe_ which uses System.CommandLine.
If I run _"Foo.Bar.CLI.exe -h"_ the printed usage is correct, i.e. _"Foo.Bar.CLI [command] [options]"_.
If I skip the .exe and run _"Foo.Bar.CLI -h"_ the printed usage is i.e. _"Foo.Bar [command] [options]"_. The last part of the program's filename, .CLI, has been erroneously cropped this time and the proposed command does not work.
Am I missing anything?
Thanks for a great library otherwise :)
Contributor guide
Assessment
This issue has not been assessed yet.