1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00

Merge pull request #268 from theStack/fix_send_without_argument

fix send without argument (trigger intended error message)
This commit is contained in:
Zack 2020-09-20 15:32:34 -07:00 committed by GitHub
commit dab52b4af7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]")