Skip to content

Commit e1ba6da

Browse files
committed
Improve the usage pattern of commands
1 parent 64fdaa7 commit e1ba6da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/zulip/commands.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::str::FromStr;
55

66
/// Command sent in a DM with triagebot on Zulip.
77
#[derive(clap::Parser, Debug)]
8+
#[clap(override_usage("<command>"))]
89
pub enum ChatCommand {
910
/// Acknowledge a notification
1011
#[clap(alias = "ack")]
@@ -137,6 +138,7 @@ impl FromStr for IdentifierCli {
137138

138139
/// Command sent in a Zulip stream after `@**triagebot**`.
139140
#[derive(clap::Parser, Debug)]
141+
#[clap(override_usage = "`@triagebot <command>`")]
140142
pub enum StreamCommand {
141143
/// End the current topic.
142144
#[clap(alias = "await")]

0 commit comments

Comments
 (0)