From 2ab4ac056719a194945be41e6513fa4ba47ccde9 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Thu, 19 Feb 2026 21:32:49 +0900 Subject: [PATCH] docs: document --exit-0 and --select-all CLI flags --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9055ab0..b50194e 100644 --- a/README.md +++ b/README.md @@ -394,6 +394,14 @@ When specified *and* the input contains exactly 1 line, peco skips prompting you If there are multiple lines in the input, the usual selection view is displayed. +### --exit-0 + +When specified and the input is empty (zero lines), peco exits immediately with status 1 without displaying the selection view. + +### --select-all + +When specified, peco selects all input lines and immediately exits without displaying the selection view. + ### --on-cancel `success|error` Specifies the exit status to use when the user cancels the query execution.