diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-14 19:52:44 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-14 19:52:44 +0200 |
| commit | 8497362a52b80026ecbd29a51d13013c7d07eeaa (patch) | |
| tree | b6835e9606d80487cbe9ce115e6a45472d120ca9 /flags/flags.go | |
| parent | 5dbe3fc91668a53e75076528b90b90c164b1d4db (diff) | |
add version flag
Diffstat (limited to 'flags/flags.go')
| -rw-r--r-- | flags/flags.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/flags/flags.go b/flags/flags.go index 19cc84b..a513019 100644 --- a/flags/flags.go +++ b/flags/flags.go @@ -3,12 +3,13 @@ package flags import "github.com/spf13/pflag" var ( - Here = pflag.BoolP("here", "h", false, "run target in current directory instead of source location") - At = pflag.StringP("at", "@", "", "override run location") - Single = pflag.BoolP("singgle", "s", false, "do not run any triggers") - All = pflag.BoolP("all", "a", false, "get sources from cache instead of crawling") - Dry = pflag.BoolP("dry", "d", false, "print cmdlines instead of running them") - Root = pflag.BoolP("root", "r", false, "run targets (including triggers) with sudo") - Yes = pflag.BoolP("yes", "y", false, "auto-confirm y/n confirmations") - Env = pflag.StringArray("env", nil, "environment files or pre- or suffix") + Here = pflag.BoolP("here", "h", false, "run target in current directory instead of source location") + At = pflag.StringP("at", "@", "", "override run location") + Single = pflag.BoolP("singgle", "s", false, "do not run any triggers") + All = pflag.BoolP("all", "a", false, "get sources from cache instead of crawling") + Dry = pflag.BoolP("dry", "d", false, "print cmdlines instead of running them") + Root = pflag.BoolP("root", "r", false, "run targets (including triggers) with sudo") + Yes = pflag.BoolP("yes", "y", false, "auto-confirm y/n confirmations") + Env = pflag.StringArray("env", nil, "environment files or pre- or suffix") + Version = pflag.BoolP("version", "v", false, "print version and exit") ) |
