aboutsummaryrefslogtreecommitdiff
path: root/src/commands/look_up.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-11-11 04:35:35 -0800
committeriximeow <me@iximeow.net>2017-11-11 16:00:31 -0800
commita4f05a40e2f7146f429fef26a96c91a41baba499 (patch)
tree1a3a0ff74bedf1788079ba642eb222f6a4d23c9d /src/commands/look_up.rs
parente6091834b942f0c08c87a27223721c45795da627 (diff)
start adding help reference
Diffstat (limited to 'src/commands/look_up.rs')
-rw-r--r--src/commands/look_up.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/look_up.rs b/src/commands/look_up.rs
index dff56aa..fa83d2b 100644
--- a/src/commands/look_up.rs
+++ b/src/commands/look_up.rs
@@ -8,7 +8,8 @@ use commands::Command;
pub static LOOK_UP_USER: Command = Command {
keyword: "look_up_user",
params: 1,
- exec: look_up_user
+ exec: look_up_user,
+ help_str: "<twitter_user_id>: Look up the user by the specified twitter user ID, display name/handle."
};
fn look_up_user(line: String, tweeter: &mut tw::TwitterCache, mut queryer: &mut Queryer) {
@@ -23,7 +24,8 @@ fn look_up_user(line: String, tweeter: &mut tw::TwitterCache, mut queryer: &mut
pub static LOOK_UP_TWEET: Command = Command {
keyword: "look_up_tweet",
params: 1,
- exec: look_up_tweet
+ exec: look_up_tweet,
+ help_str: "<tweet_id>: Look up tweet by the tweet ID. If unknown, try to retrieve it."
};
// TODO: make this parse a proper tweet id