enhancementhelp wanted
Repository metrics
- Stars
- (1,603 stars)
- PR merge metrics
- (Avg merge 3d 1h) (1 merged PR in 30d)
Description
Add support for path-through arguments.
Sometimes the application may act as a proxy to another application. An example of this is dotnet run which routes any arguments after -- directly to the executed application.
Example:
dotnet run -c Release -- arg1 arg2 --flag
Arguments arg1, arg2, --flag are passed as is to the executed application.
Allow [CommandArgumentSink] attribute on properties of type IEnumerable<string> or any other type that can be assigned from a string array or initialized with a string array (similar to how we do conversions currently). There can only be one such property.
Note: this has to play nicely with #38.
Open question:
- Should arguments after
--only be consumed by argument sinks? - If not, then we need to determine how parameters/options and argument sinks should work together.