fix send without argument (trigger intended error message)

This commit is contained in:
Sebastian Falbesoner 2020-09-19 21:48:11 +02:00
parent a507b98cbe
commit a313a96a8e
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func send(c *cli.Context) (err error) {
}()
} else {
fnames = append([]string{c.Args().First()}, c.Args().Tail()...)
fnames = c.Args().Slice()
}
if len(fnames) == 0 {
return errors.New("must specify file: croc send [filename]")