diff options
Diffstat (limited to 'flags.go')
-rw-r--r-- | flags.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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") |