summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2022-10-14 15:08:32 +0200
committerGitHub <noreply@github.com>2022-10-14 15:08:32 +0200
commitd074bb1cda819bd660b76b3be54b4db10d0eeed4 (patch)
treefa85e65655909167cbd998b564e0a91353c3f5a3 /zellij-utils/src/cli.rs
parent5c43a59e00eb84bbba84b25cc2750c84359cd8a5 (diff)
feat(layouts): global cwd (#1798)
* feat(layouts): allow defining a global cwd * feat(layouts): allow passing global cwd from cli * style(fmt): rustfmt * fix(layouts): error on mixed cwd and pane children
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r--zellij-utils/src/cli.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index bef1afb33..ae0c2141c 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -253,5 +253,7 @@ pub enum CliAction {
layout: Option<PathBuf>,
#[clap(short, long, value_parser)]
name: Option<String>,
+ #[clap(short, long, value_parser, requires("layout"))]
+ cwd: Option<PathBuf>,
},
}