From ad93a14000e5fc1f725afb327d79528cd672fb4e Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Wed, 12 Oct 2022 15:35:19 +0200 Subject: [PATCH] fix(cli): use provided session-name (#1793) --- zellij-utils/src/input/options.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zellij-utils/src/input/options.rs b/zellij-utils/src/input/options.rs index 60707597ca..93f15b2d46 100644 --- a/zellij-utils/src/input/options.rs +++ b/zellij-utils/src/input/options.rs @@ -107,10 +107,12 @@ pub struct Options { #[clap(long, value_parser)] pub scrollback_editor: Option, + /// The name of the session to create when starting Zellij #[clap(long, value_parser)] #[serde(default)] pub session_name: Option, + /// Whether to attach to a session specified in "session-name" if it exists #[clap(long, value_parser)] #[serde(default)] pub attach_to_session: Option, @@ -310,6 +312,8 @@ impl From for Options { copy_clipboard: opts.copy_clipboard, copy_on_select: opts.copy_on_select, scrollback_editor: opts.scrollback_editor, + session_name: opts.session_name, + attach_to_session: opts.attach_to_session, ..Default::default() } }