Closed thorhj closed 4 years ago
Hi, thank you. Do you have a use case for this? Ideally we would want to have error messages so good that they won't need to be replaced, so if you have a suggestion how it should look, I'm all ears. Technically it's not too hard to implement but I'd like to figure out what are the pros/cons.
I have three things that bother me right now:
The value 'abc' for option 'id' is invalid; it must be an integer
.myprogram command subcommand args
instead of dotnet MyProgram.dll command subcommand args
. The help text uses the latter format which I cannot change..WithExecutableName()
on CliApplicationBuilder
. It's impossible to know that it was launched from a batch file unfortunately.You can change it using .WithExecutableName() on CliApplicationBuilder. It's impossible to know that it was launched from a batch file unfortunately.
Nice, exactly what I was looking for (it is UseExecutibleName()
actually).
The colors actually look different in different terminals. I assume you don't like how it looks in cmd?
I use Cmder with a custom color scheme, but it has more to do with me not being a fan of background colors I guess.
I think the standard outputs that you have made are generally fine, but it would be nice to be able to customize them to one's own needs. I am not suggesting it is something you have to do as a consumer, but it would be nice to have the option.
Nice, exactly what I was looking for (it is UseExecutibleName() actually).
Oops.
Removed the background color on headers.
Also changed the errors in case of conversion failure, but they're still a bit technical.
Updated the error messages again. I'll be continually improving them to make them sound better. Closing this for now as I don't think I will be adding custom formatting.
First of all, nice framework :)
I think it would be nice to allow custom formatting of output that is currently fixed. Output that I have seen so far (not an extensive list):
Can't convert value [abc] to type [System.Int32].
One or more required options were not set: id.