zigdon / twirssi

An irssi script allowing the use of Twitter from within the IRC client.
http://twirssi.com
133 stars 26 forks source link

Two argument form for some commands #33

Open zigdon opened 13 years ago

zigdon commented 13 years ago

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.

gedge commented 12 years ago

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?

zigdon commented 12 years ago

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?