Merge pull request #14 from zetamatta/master
Fix `mstdn.exe toot -ff -` errors `arguments required`
This commit is contained in:
commit
a927099097
|
@ -9,10 +9,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func cmdToot(c *cli.Context) error {
|
func cmdToot(c *cli.Context) error {
|
||||||
if !c.Args().Present() {
|
|
||||||
return errors.New("arguments required")
|
|
||||||
}
|
|
||||||
|
|
||||||
var toot string
|
var toot string
|
||||||
ff := c.String("ff")
|
ff := c.String("ff")
|
||||||
if ff != "" {
|
if ff != "" {
|
||||||
|
@ -22,6 +18,9 @@ func cmdToot(c *cli.Context) error {
|
||||||
}
|
}
|
||||||
toot = string(text)
|
toot = string(text)
|
||||||
} else {
|
} else {
|
||||||
|
if !c.Args().Present() {
|
||||||
|
return errors.New("arguments required")
|
||||||
|
}
|
||||||
toot = argstr(c)
|
toot = argstr(c)
|
||||||
}
|
}
|
||||||
client := c.App.Metadata["client"].(*mastodon.Client)
|
client := c.App.Metadata["client"].(*mastodon.Client)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user