summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
diff options
context:
space:
mode:
authorGPery <GPery@pm.me>2021-09-19 15:47:52 +0300
committerGitHub <noreply@github.com>2021-09-19 18:17:52 +0530
commitb761a28702f0a13085bb8b2a516ed4a614971a31 (patch)
treeb6e3fa5c515753f060fa547758ca46a6c00e3488 /zellij-utils/src/cli.rs
parenteb22a6c1717fee65d1f5e6cab0a31aad0e7972a5 (diff)
Implement `attach --create` subcommand flag to create session if one does not exist (#731)
* Implement attach --create * fixup! Implement attach --create * fixup! Implement attach --create * fixup! Implement attach --create * fixup! Implement attach --create
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r--zellij-utils/src/cli.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index a8dc9c0aa..eb52589ae 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -85,6 +85,11 @@ pub enum Sessions {
/// zellij client (if any) and attach to this.
#[structopt(long, short)]
force: bool,
+
+ /// Create a session if one does not exist.
+ #[structopt(short, long)]
+ create: bool,
+
/// Change the behaviour of zellij
#[structopt(subcommand, name = "options")]
options: Option<SessionCommand>,