diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-29 00:32:06 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-29 00:32:06 +0530 |
| commit | 0bd05cbcb46d607079608bb83bdefba97bf7a764 (patch) | |
| tree | d4abb52e544ec5afb8bc23c3ee770492d942ba72 /zellij-utils/src/cli.rs | |
| parent | docs(changelog): Fix lag #536 (diff) | |
| download | sl0ppij-0bd05cbcb46d607079608bb83bdefba97bf7a764.tar.gz sl0ppij-0bd05cbcb46d607079608bb83bdefba97bf7a764.tar.xz sl0ppij-0bd05cbcb46d607079608bb83bdefba97bf7a764.zip | |
Make session-name option in attach command
If only one session is running, attach to it.
Otherwise list the active sessions (if any)
Diffstat (limited to 'zellij-utils/src/cli.rs')
| -rw-r--r-- | zellij-utils/src/cli.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index bf7851c9..2ac0e986 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -72,7 +72,7 @@ pub enum Sessions { #[structopt(alias = "a")] Attach { /// Name of the session to attach to. - session_name: String, + session_name: Option<String>, /// Force attach- session will detach from the other /// zellij client (if any) and attach to this. |
