Skip to content
Myr

Add documentation for Use (#1188)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michael Muré · committed by GitHub · parent 81e0311 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:command.go+8 added
35 unmodified lines
36// you to define the usage and description as part of your command37// definition to ensure usability.38type Command struct {39 // Use is the one-line usage message.40 // Recommended syntax is as follow:41 // [ ] identifies an optional argument. Arguments that are not enclosed in brackets are required.42 // ... indicates that you can specify multiple values for the previous argument.43 // | indicates mutually exclusive information. You can use the argument to the left of the separator or the44 // argument to the right of the separator. You cannot use both arguments in a single use of the command.45 // { } delimits a set of mutually exclusive arguments when one of the arguments is required. If the arguments are46 // optional, they are enclosed in brackets ([ ]).47 // Example: add [-F file | -D dir]... [-f format] profile48 Use string4950 // Aliases is an array of aliases that can be used instead of the first word in Use.51 Aliases []string
1613 unmodified lines