summaryrefslogtreecommitdiff
path: root/flags
diff options
context:
space:
mode:
Diffstat (limited to 'flags')
-rw-r--r--flags/flags.go17
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")
)