diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-12 18:46:21 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-15 22:14:34 +0530 |
| commit | f2c43ac577d9d2a93695564cb3185264e3492a68 (patch) | |
| tree | 47d19cb1e4ada87e1b9b8684f7f6e2637146dadf /src/cli.rs | |
| parent | Switch to multiprocess model: Not looking good (diff) | |
| download | sl0ppij-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.rs | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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)] |
