From 1c681ad4149f994a2a8caf21133747b9348002c6 Mon Sep 17 00:00:00 2001 From: ewy Date: Sat, 2 May 2026 17:07:13 +0200 Subject: add a little abstraction to the main branches --- flags/flags.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'flags') diff --git a/flags/flags.go b/flags/flags.go index 756d95b..7138522 100644 --- a/flags/flags.go +++ b/flags/flags.go @@ -24,6 +24,8 @@ var ( // List means we should output available targets separated by $IFS List = pflag.BoolP("list", "l", false, "list available targets and exit") // Inline means pik does not go to the terminal alt screen - Inline = pflag.BoolP("inline", "i", false, "if true, will force alt screen; if forced false, will disable alt screen") - Edit = pflag.Bool("edit", false, "edit the target in $EDITOR") + // unused because it is accessed by `flags.Get("inline")` + Inline = pflag.BoolP("inline", "i", false, "if true, will force alt screen; if forced false, will disable alt screen") + Edit = pflag.Bool("edit", false, "edit the target in $EDITOR") + Completion = pflag.Bool("completion", false, "echo completion scrip and exit") ) -- cgit v1.3.1