Nate McMaster
Nate McMaster
Here is a sample. This should probably be explicitly called out in the docs, too. https://github.com/natemcmaster/CommandLineUtils/blob/7281ee9fef08286a3a0a4f72d04b1d234747b316/docs/samples/validation/attributes/Program.cs#L14-L16
> Is there a sample that is close to what I am looking for? Not really. This has been asked before. See https://github.com/natemcmaster/CommandLineUtils/issues/152. If you want to build something and...
I think this matches your problem: https://stackoverflow.com/a/57590076
I would be open to a pull request that implements this. I've marked as help-wanted as I'm not planning to implement on my own, but this seems like a valuable...
The built-in `ExistingFile` validator doesn't provide a way to mock the filesystem. You will need to write your own validator if you want to do that. You can write your...
Try setting the option type. `[Option("-h|--header", CommandOptionType.SingleValue, ...` By default, bool is treated as `CommandOptionType.NoValue`.
Don't use `async void`. Use `async Task` instead. https://haacked.com/archive/2014/11/11/async-void-methods/
It's used in help text generation. Try running the sample with `--help` and you should see it mentioned there. The value is meant to match the name of the .exe...
Thanks for the PR! Could you add a unit test to validate this is working as expected?
Feel free to make a pull request to extend the list. https://docs.microsoft.com/en-us/aspnet/core/performance/response-compression?view=aspnetcore-6.0#mime-types