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
1 changed files with 1 additions and 1 deletions

View File

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