You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by wayneyaoo December 4, 2021
Can we have concept of "Example" for each command that can be specified by the CLI author and a new section is rendered as "EXAMPLE".
I was imaging something like
[Command("verb")]publicclass MyCommand :ICommand{// options and parameters go here as property[Example]public(static) Example[] Examples =new[]{new Example("verb --option value"), new Example("verb--anotherPositionalOption") };
}
and the examples could be rendered to another section like "EXAMPLE" when ./myapp verb -h is called.
I'm happy to contribute if this looks good. Or we can discuss.
The text was updated successfully, but these errors were encountered:
Discussed in #114
Originally posted by wayneyaoo December 4, 2021
Can we have concept of "Example" for each command that can be specified by the CLI author and a new section is rendered as "EXAMPLE".
I was imaging something like
and the examples could be rendered to another section like "EXAMPLE" when
./myapp verb -h
is called.I'm happy to contribute if this looks good. Or we can discuss.
The text was updated successfully, but these errors were encountered: