Commit 27d8cea4 authored by Jeromy's avatar Jeromy

fix closenotify by not sending empty file set

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent c9ab84bc
......@@ -49,8 +49,10 @@ func Parse(input []string, stdin *os.File, root *cmds.Command) (cmds.Request, *c
}
req.SetArguments(stringArgs)
if len(fileArgs) > 0 {
file := files.NewSliceFile("", "", fileArgs)
req.SetFiles(file)
}
err = cmd.CheckArguments(req)
if err != nil {
......
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