diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-02 17:07:13 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-02 17:07:13 +0200 |
| commit | 1c681ad4149f994a2a8caf21133747b9348002c6 (patch) | |
| tree | 2fee367772f07dbc80fa1b036535abd8aab8bf40 /flags | |
| parent | f78ac099102715281f27492142ebf0fe6004d0a1 (diff) | |
add a little abstraction to the main branches
Diffstat (limited to 'flags')
| -rw-r--r-- | flags/flags.go | 6 |
1 files changed, 4 insertions, 2 deletions
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") ) |
