Skip to content

Commit

Permalink
usage documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Nov 4, 2024
1 parent 1aa3bae commit 1031f32
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ecdysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ type Ecdysis struct {
// Command is an interface that represents a command that can be decorated and
// converted to a cobra.Command instance.
type Command interface {
// Usage is the one-line usage message.
// Recommended syntax is as follows:
// [ ] identifies an optional argument. Arguments that are not enclosed in
// brackets are required.
// ... indicates that you can specify multiple values for the previous
// argument.
// | indicates mutually exclusive information. You can use the argument
// to the left of the separator or the argument to the right of the
// separator. You cannot use both arguments in a single use of the
// command.
// { } delimits a set of mutually exclusive arguments when one of the
// arguments is required. If the arguments are optional, they are
// enclosed in brackets ([ ]).
// Example: add [-F file | -D dir]... [-f format] profile
Usage() string
}

Expand Down

0 comments on commit 1031f32

Please sign in to comment.