diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 16:51:39 -0800 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 16:51:39 -0800 |
commit | d1a33a3a167d47541561ca9597d2d5f28431605f (patch) | |
tree | 43c4943bca0d1d4e3341b1a7bb0f9372832cd253 /src/commands/twete.rs | |
parent | 73dc5dda6b8ca8a8bdae0f620442e359871b0152 (diff) |
add a little more help info, describe tweets/compose mode/commands
Diffstat (limited to 'src/commands/twete.rs')
-rw-r--r-- | src/commands/twete.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/commands/twete.rs b/src/commands/twete.rs index ff75fea..dbea81b 100644 --- a/src/commands/twete.rs +++ b/src/commands/twete.rs @@ -13,7 +13,8 @@ pub static DEL: Command = Command { keyword: "del", params: 1, exec: del, - help_str: "<tweet_id>: Delete tweet <tweet_id>" + param_str: " <tweet_id>", + help_str: "Delete tweet <tweet_id>" }; fn del(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -43,6 +44,7 @@ pub static TWETE: Command = Command { keyword: "t", params: 0, exec: twete, + param_str: "", help_str: "Enter tweet compose mode." }; @@ -79,6 +81,7 @@ pub static THREAD: Command = Command { keyword: "thread", params: 2, exec: thread, + param_str: " <tweet_id> <response>", // should be optional.. // TODO: make it actually do this.. help_str: "Enter compose mode, appending to a thread" }; @@ -122,8 +125,9 @@ pub static REP: Command = Command { keyword: "rep", params: 1, exec: rep, + param_str: " <tweet_id>", // TODO: doc immediate reply mode - help_str: "<tweet_id>: Enter compose mode to reply to <tweet_id>" + help_str: "Enter compose mode to reply to <tweet_id>" }; fn rep(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -199,7 +203,8 @@ pub static QUOTE: Command = Command { keyword: "qt", params: 2, exec: quote, - help_str: "<tweet_id> <text>: Quote <tweet_id> with context <text>" + param_str: " <tweet_id> <text>", + help_str: "Quote <tweet_id> with context <text>" }; fn quote(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -259,7 +264,8 @@ pub static RETWETE: Command = Command { keyword: "rt", params: 1, exec: retwete, - help_str: "<tweet_id>: Retweet <tweet_id>" + param_str: " <tweet_id>", + help_str: "Retweet <tweet_id>" }; fn retwete(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { |