mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 05:18:16 +08:00
Add ability to pass example args using params
syntax (#1166)
This commit is contained in:
@ -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");
|
||||
});
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user