Argument captures a positional argument that can be parsed
| 64 | // Argument captures a positional argument that can |
| 65 | // be parsed |
| 66 | type Argument interface { |
| 67 | // which this argument can be accessed using the given name |
| 68 | HasName(string) bool |
| 69 | |
| 70 | // Parse the given args and return unparsed args and/or error |
| 71 | Parse([]string) ([]string, error) |
| 72 | |
| 73 | // The usage template for this argument to use in help |
| 74 | Usage() string |
| 75 | |
| 76 | // The Value of this Arg |
| 77 | Get() any |
| 78 | } |
| 79 | |
| 80 | // AnyArguments to differentiate between no arguments(nil) vs aleast one |
| 81 | var AnyArguments = []Argument{ |
no outgoing calls
no test coverage detected