diff options
-rw-r--r-- | src/commands.rs | 6 | ||||
-rw-r--r-- | zellij-utils/src/cli.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/commands.rs b/src/commands.rs index e0dbbdc2e..152cfd085 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -418,7 +418,7 @@ pub(crate) fn start_client(opts: CliArgs) { opts.command = Some(Command::Sessions(Sessions::Attach { session_name: reconnect_to_session.name.clone(), create: true, - background: false, + create_background: false, force_run_commands: false, index: None, options: None, @@ -478,7 +478,7 @@ pub(crate) fn start_client(opts: CliArgs) { if let Some(Command::Sessions(Sessions::Attach { session_name, create, - background, + create_background, force_run_commands, index, options, @@ -490,7 +490,7 @@ pub(crate) fn start_client(opts: CliArgs) { }, None => config_options, }; - should_create_detached = background; + should_create_detached = create_background; let client = if let Some(idx) = index { attach_with_session_index( diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index ba1898439..162a23e9e 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -126,8 +126,8 @@ pub enum Sessions { create: bool, /// Create a detached session in the background if one does not exist - #[clap(short, long, value_parser)] - background: bool, + #[clap(short('b'), long, value_parser)] + create_background: bool, /// Number of the session index in the active sessions ordered creation date. #[clap(long, value_parser)] |