Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not parse flags from IEnumerable<string> #38

Closed
dzarda opened this issue Jan 17, 2020 · 1 comment
Closed

Should not parse flags from IEnumerable<string> #38

dzarda opened this issue Jan 17, 2020 · 1 comment

Comments

@dzarda
Copy link

dzarda commented Jan 17, 2020

I'm trying to forward args to a BenchmarkDotNet method:

BenchmarkSwitcher.Run(string[] args, ...)

BenchmarkDotNet expects war Main(string[] args) args and is run in the following manner:

dotnet run -c Release -- --job short --runtimes clr core --filter *BenchmarkClass1*

My input class looks as follows:

public class BenchInput : RickInput
{
    [Description("BenchmarkDotNet Run args")]
    public IEnumerable<string> Args { get; set; }
}

Is there a way to use Oakton to propagate string args[] "verbatim" ?

@jeremydmiller
Copy link
Member

Not as an argument, but you can as a flag: https://jasperfx.github.io/oakton/documentation/flags/enumerable/

I'm very sorry about how long it's taken to respond here:(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants