summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-11-05 21:57:01 +0100
committera-kenji <aks.kenji@protonmail.com>2021-11-05 21:57:01 +0100
commit808458ec7b14275fabbf8b9c2bc7e1b1e81578dd (patch)
tree1f32ac57e5d317d3636c65794d248c74d9f5c339 /zellij-utils/src
parentb955dc6a4f1bda4a75aa5d9ebda8f7ffe47daa6f (diff)
parent4acb2458d2e0da1d0459114f45123841e2fca741 (diff)
Merge branch 'support-first-option-in-attach-subcommand-to-attach-the-first-session' of https://github.com/ken-matsui/zellij into ken-matsui-support-first-option-in-attach-subcommand-to-attach-the-first-session
Diffstat (limited to 'zellij-utils/src')
-rw-r--r--zellij-utils/src/cli.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index 7ac9e958c..78615d929 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -85,6 +85,10 @@ pub enum Sessions {
#[structopt(short, long)]
create: bool,
+ /// Number of the session index in the active sessions ordered creation date.
+ #[structopt(long)]
+ index: Option<usize>,
+
/// Change the behaviour of zellij
#[structopt(subcommand, name = "options")]
options: Option<SessionCommand>,