twirssi icon indicating copy to clipboard operation
twirssi copied to clipboard

Two argument form for some commands

Open zigdon opened this issue 14 years ago • 2 comments

Commands that take one argument, but apply to a particular account, can be improved to accept the account name to act on as the first argument

So that instead of doing /twitter_switch AcctB /twitter_follow Foo /twitter_switch AcctA

Could just do /twitter_follow AcctB Foo

This might apply to a number of commands, /twitter_follow and /twitter_unfollow are just examples.

zigdon avatar Aug 03 '11 19:08 zigdon

this is not so simple for some multi-argument commands, e.g. /tweet AccB is part of the tweet so I was wondering if another solution could be used

perhaps /twitter_follow -as accB Foo

that would enable us to get rid of existing (or stop creating new) *_as commands, which might be a bonus

thoughts?

gedge avatar Oct 16 '11 08:10 gedge

Yeah, accepting flags is one way, and that would be fine with me. Perhaps, for simpler use, we could follow the example of tail, and just do /twitter_follow -accB Foo?

zigdon avatar Oct 16 '11 18:10 zigdon