Skip to content

Commit 16d5325

Browse files
committed
Report all clap errors in expandable blockquote
1 parent 1a729d1 commit 16d5325

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ async fn answer(bot: Bot, msg: Message, bc: BCommand) -> ResponseResult<()> {
220220
command::Notifier::List => list(bot, msg).await,
221221
}
222222
}
223-
Err(Error::Clap(e))
224-
if e.kind() == clap::error::ErrorKind::DisplayHelp
225-
|| e.kind() == clap::error::ErrorKind::DisplayHelp =>
226-
{
223+
Err(Error::Clap(e)) => {
227224
let help_text = e.render().to_string();
228225
reply_to_msg(
229226
&bot,

0 commit comments

Comments
 (0)