mirror of https://github.com/schollz/croc.git
fix send without argument (trigger intended error message)
This commit is contained in:
parent
a507b98cbe
commit
a313a96a8e
|
@ -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