diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 04:35:35 -0800 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 16:00:31 -0800 |
commit | 73dc5dda6b8ca8a8bdae0f620442e359871b0152 (patch) | |
tree | 1a3a0ff74bedf1788079ba642eb222f6a4d23c9d /src/commands/thread.rs | |
parent | 3601bf6433d46dea4dd1960f7a3cdc514602983d (diff) |
start adding help reference
Diffstat (limited to 'src/commands/thread.rs')
-rw-r--r-- | src/commands/thread.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/commands/thread.rs b/src/commands/thread.rs index 6f05048..0897b21 100644 --- a/src/commands/thread.rs +++ b/src/commands/thread.rs @@ -9,7 +9,8 @@ use commands::Command; pub static FORGET_THREAD: Command = Command { keyword: "forget", params: 1, - exec: forget + exec: forget, + help_str: "<name>: Discard thread known by <name>. Entirely local to the client." }; fn forget(line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) { @@ -20,7 +21,8 @@ fn forget(line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) pub static REMEMBER_THREAD: Command = Command { keyword: "remember", params: 2, - exec: remember + exec: remember, + help_str: "<tweet_id> <name>: Remember the thread tipped by <tweet_id> as <name>. Entirely local to the client." }; fn remember(line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) { @@ -51,7 +53,8 @@ fn remember(line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer pub static LIST_THREADS: Command = Command { keyword: "ls_threads", params: 0, - exec: ls_threads + exec: ls_threads, + help_str: "Show all known (local) threads" }; fn ls_threads(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { |