From 8f5acbc7e7fc3652f5321a31be351221542faf80 Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Sun, 6 Jun 2021 23:16:38 +0200 Subject: change interactive flag to follow --- mumctl/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mumctl/src') 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)"), -- cgit v1.2.1