Skip to content

Commit

Permalink
✨ add short alias for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Aug 2, 2024
1 parent ec11b3f commit cd843dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wsrx/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mod cli;
#[command(name = "wsrx")]
#[command(bin_name = "wsrx")]
enum WsrxCli {
#[clap(alias("d"))]
/// Launch wsrx daemon.
Daemon {
#[clap(long)]
Expand All @@ -28,6 +29,7 @@ enum WsrxCli {
#[clap(long)]
heartbeat: Option<u64>,
},
#[clap(alias("c"))]
/// Launch wsrx client.
Connect {
/// The address to connect to.
Expand All @@ -42,6 +44,7 @@ enum WsrxCli {
#[clap(short, long)]
log_json: Option<bool>,
},
#[clap(alias("s"))]
/// Launch wsrx server.
Serve {
#[clap(long)]
Expand Down

0 comments on commit cd843dd

Please sign in to comment.