Commit abb8374d authored by Matt Bell's avatar Matt Bell

commands: NewRequest: Documented error case

parent 3c5bfcec
......@@ -257,6 +257,7 @@ func NewEmptyRequest() (Request, error) {
}
// NewRequest returns a request initialized with given arguments
// An non-nil error will be returned if the provided option values are invalid
func NewRequest(path []string, opts optMap, args []interface{}, cmd *Command, optDefs map[string]Option) (Request, error) {
if path == nil {
path = make([]string, 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment