summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/flags.go b/flags.go
index 1e802a1..a7a95e5 100644
--- a/flags.go
+++ b/flags.go
@@ -17,7 +17,8 @@ Usage: ceres [-h | --help] [-v | --version] [-c | --config]
`
var flags struct {
- version bool
+ version bool
+ config string
examples bool
}
@@ -25,8 +26,8 @@ func init() {
flag.BoolVar(&flags.version, "version", false, "print version information")
flag.BoolVar(&flags.version, "v", false, "print version information")
- flag.StringVar(&config.Path, "config", "", "file path to configuration file")
- flag.StringVar(&config.Path, "c", "", "file path to configuration file")
+ flag.StringVar(&flags.config, "config", "", "file path to configuration file")
+ flag.StringVar(&flags.config, "c", "", "file path to configuration file")
flag.BoolVar(&flags.examples, "examples", false, "inject example recipes on startup")
flag.BoolVar(&flags.examples, "e", false, "inject example recipes on startup")