Merge pull request #14 from zetamatta/master

Fix `mstdn.exe toot -ff -` errors `arguments required`
pull/16/head
mattn 2017-04-16 20:02:14 +09:00 committed by GitHub
commit a927099097
1 changed files with 3 additions and 4 deletions

View File

@ -9,10 +9,6 @@ import (
)
func cmdToot(c *cli.Context) error {
if !c.Args().Present() {
return errors.New("arguments required")
}
var toot string
ff := c.String("ff")
if ff != "" {
@ -22,6 +18,9 @@ func cmdToot(c *cli.Context) error {
}
toot = string(text)
} else {
if !c.Args().Present() {
return errors.New("arguments required")
}
toot = argstr(c)
}
client := c.App.Metadata["client"].(*mastodon.Client)