aboutsummaryrefslogtreecommitdiffstats
path: root/mumctl/src/main.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-06-06 23:16:38 +0200
committerEskil Queseth <eskilq@kth.se>2021-06-06 23:16:38 +0200
commit8f5acbc7e7fc3652f5321a31be351221542faf80 (patch)
treeea5fdad5053fc3bcd77b285b06c44b21fe80da12 /mumctl/src/main.rs
parentbfae92c25b0bb319d463c5632f21cc9cf02a9390 (diff)
downloadmum-8f5acbc7e7fc3652f5321a31be351221542faf80.tar.gz
change interactive flag to follow
Diffstat (limited to 'mumctl/src/main.rs')
-rw-r--r--mumctl/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs
index 6fca6a4..745fafa 100644
--- a/mumctl/src/main.rs
+++ b/mumctl/src/main.rs
@@ -92,8 +92,8 @@ enum Command {
Undeafen,
/// Get messages sent to the server you're currently connected to
Messages {
- #[structopt(short = "i", long = "interactive")]
- interactive: bool,
+ #[structopt(short = "f", long = "follow")]
+ follow: bool,
},
/// Send a message to a channel or a user
Message(Target),
@@ -378,9 +378,9 @@ fn match_opt() -> Result<(), Error> {
send_command(MumCommand::DeafenSelf(Some(false)))??;
}
Command::Messages {
- interactive
+ follow
} => {
- for response in send_command_multi(MumCommand::PastMessages { block: interactive })? {
+ for response in send_command_multi(MumCommand::PastMessages { block: follow })? {
match response {
Ok(Some(CommandResponse::PastMessage { message })) => println!("{}: {}", message.1, message.0),
Ok(_) => unreachable!("Response should only be a Some(PastMessages)"),