Skip to content

Commit

Permalink
feat: Shows subcommand aliases in help text (#918) (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbass1997 authored May 10, 2022
1 parent e6cbd11 commit a017a65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zellij-utils/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ pub enum SessionCommand {
#[derive(Debug, Subcommand, Clone, Serialize, Deserialize)]
pub enum Sessions {
/// List active sessions
#[clap(alias = "ls")]
#[clap(visible_alias = "ls")]
ListSessions,

/// Attach to a session
#[clap(alias = "a")]
#[clap(visible_alias = "a")]
Attach {
/// Name of the session to attach to.
session_name: Option<String>,
Expand All @@ -97,14 +97,14 @@ pub enum Sessions {
},

/// Kill the specific session
#[clap(alias = "k")]
#[clap(visible_alias = "k")]
KillSession {
/// Name of target session
target_session: Option<String>,
},

/// Kill all sessions
#[clap(alias = "ka")]
#[clap(visible_alias = "ka")]
KillAllSessions {
/// Automatic yes to prompts
#[clap(short, long)]
Expand Down

0 comments on commit a017a65

Please sign in to comment.