aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-12 18:46:21 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-15 22:14:34 +0530
commitf2c43ac577d9d2a93695564cb3185264e3492a68 (patch)
tree47d19cb1e4ada87e1b9b8684f7f6e2637146dadf /src/cli.rs
parentSwitch to multiprocess model: Not looking good (diff)
downloadsl0ppij-f2c43ac577d9d2a93695564cb3185264e3492a68.tar.gz
sl0ppij-f2c43ac577d9d2a93695564cb3185264e3492a68.tar.xz
sl0ppij-f2c43ac577d9d2a93695564cb3185264e3492a68.zip
Fix memory overflow error and add panic hook for server
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 72666dd6..9ea84374 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -13,22 +13,23 @@ pub struct CliArgs {
pub max_panes: Option<usize>,
/// Change where zellij looks for layouts and plugins
- #[structopt(long)]
+ #[structopt(long, parse(from_os_str))]
pub data_dir: Option<PathBuf>,
- #[structopt(long)]
+ /// Run server listening at the specified socket path
+ #[structopt(long, parse(from_os_str))]
pub server: Option<PathBuf>,
/// Path to a layout yaml file
- #[structopt(short, long)]
+ #[structopt(short, long, parse(from_os_str))]
pub layout: Option<PathBuf>,
/// Change where zellij looks for the configuration
- #[structopt(short, long, env=ZELLIJ_CONFIG_FILE_ENV)]
+ #[structopt(short, long, env=ZELLIJ_CONFIG_FILE_ENV, parse(from_os_str))]
pub config: Option<PathBuf>,
/// Change where zellij looks for the configuration
- #[structopt(long, env=ZELLIJ_CONFIG_DIR_ENV)]
+ #[structopt(long, env=ZELLIJ_CONFIG_DIR_ENV, parse(from_os_str))]
pub config_dir: Option<PathBuf>,
#[structopt(subcommand)]