Merge pull request #64 from zetamatta/fix-mstdnexe-toot-iflag
`mstdn.exe toot` failed because -i option's value type remained int64 yet.
This commit is contained in:
commit
689663979a
|
@ -27,7 +27,7 @@ func cmdToot(c *cli.Context) error {
|
|||
client := c.App.Metadata["client"].(*mastodon.Client)
|
||||
_, err := client.PostStatus(context.Background(), &mastodon.Toot{
|
||||
Status: toot,
|
||||
InReplyToID: mastodon.ID(fmt.Sprint(c.Int64("i"))),
|
||||
InReplyToID: mastodon.ID(fmt.Sprint(c.String("i"))),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -199,10 +199,10 @@ func makeApp() *cli.App {
|
|||
Usage: "post utf-8 string from a file(\"-\" means STDIN)",
|
||||
Value: "",
|
||||
},
|
||||
cli.IntFlag{
|
||||
cli.StringFlag{
|
||||
Name: "i",
|
||||
Usage: "in-reply-to",
|
||||
Value: 0,
|
||||
Value: "",
|
||||
},
|
||||
},
|
||||
Action: cmdToot,
|
||||
|
|
Loading…
Reference in New Issue
Block a user