Add ability to pass example args using params syntax (#1166)

This commit is contained in:
Andrii Rublov
2023-05-12 04:08:42 -07:00
committed by GitHub
parent dac2097321
commit 404b052a5f
6 changed files with 18 additions and 20 deletions

View File

@ -37,8 +37,8 @@ app.Configure(config =>
config.AddCommand<HelloCommand>("hello")
.WithAlias("hola")
.WithDescription("Say hello")
.WithExample(new []{"hello", "Phil"})
.WithExample(new []{"hello", "Phil", "--count", "4"});
.WithExample("hello", "Phil")
.WithExample("hello", "Phil", "--count", "4");
});
```