diff --git a/commands/request.go b/commands/request.go index 06294a83a785993abd82d765ea8b629a3c08af03..96cc8c6141b34a244a8496b1cd0abb65c282143b 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++ {