diff --git a/commands/request.go b/commands/request.go index 06294a83a..96cc8c614 100644 --- a/commands/request.go +++ b/commands/request.go @@ -211,6 +211,8 @@ func (r *request) haveVarArgsFromStdin() bool { len(r.arguments) < len(r.cmd.Arguments) } +// VarArgs can be used when you want string arguments as input +// and also want to be able to handle them in a streaming fashion func (r *request) VarArgs(f func(string) error) error { var i int for i = 0; i < len(r.cmd.Arguments); i++ {