summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-04-15 16:40:32 +0200
committerAram Drevekenin <aram@poor.dev>2024-04-15 16:40:32 +0200
commit686ec37157c59a95ced93a2072a2f104bece9724 (patch)
treefdebda84c3340af3f30c3b35b6949c6dbd71d017
parentee9aae789c0cd54a3e4d4e5bc0017217e6ef5925 (diff)
fix(cli): rename background to create_background
-rw-r--r--src/commands.rs6
-rw-r--r--zellij-utils/src/cli.rs2
2 files changed, 4 insertions, 4 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..27bb5143d 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -127,7 +127,7 @@ pub enum Sessions {
/// Create a detached session in the background if one does not exist
#[clap(short, long, value_parser)]
- background: bool,
+ create_background: bool,
/// Number of the session index in the active sessions ordered creation date.
#[clap(long, value_parser)]