summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
diff options
context:
space:
mode:
authorDan Näsman <30578250+dannasman@users.noreply.github.com>2022-10-19 16:49:13 +0300
committerGitHub <noreply@github.com>2022-10-19 22:49:13 +0900
commit2e70a4c67216150671bfeb2e1369e97c6a59e61f (patch)
tree6fc3f92247dfeda9f33114a095553f2f6cdf3b00 /zellij-utils/src/cli.rs
parent5878e9f6f87534811564c571f299570c99a56ef5 (diff)
allow dump_screen() to only dump the viewport (#1794)
* allow dump_screen() to only dump the viewport * add additional implementations * set full default as false
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r--zellij-utils/src/cli.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index c7c7b0dcf..153c8ede0 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -181,7 +181,11 @@ pub enum CliAction {
/// [right|left|up|down]
MovePane { direction: Direction },
/// Dumps the pane scrollback to a file
- DumpScreen { path: PathBuf },
+ DumpScreen {
+ path: PathBuf,
+ #[clap(short, long, value_parser, default_value("false"), takes_value(false))]
+ full: bool,
+ },
/// Open the pane scrollback in your default editor
EditScrollback,
/// Scroll up in the focused pane