mirror of https://github.com/schollz/croc.git
Merge pull request #268 from theStack/fix_send_without_argument
fix send without argument (trigger intended error message)
This commit is contained in:
commit
dab52b4af7
|
@ -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]")
|
||||
|
|
Loading…
Reference in New Issue