summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 6d6467a..38fde52 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,7 @@ import (
func main() {
flag.Parse()
- if printVersion {
+ if flags.version {
fmt.Println(version)
os.Exit(0)
}
@@ -38,7 +38,7 @@ func main() {
defer model.DisconnectDatabase()
model.MigrateDatabase(version)
- if injectExamples {
+ if flags.examples {
model.InjectExampleRecipes()
log.Println("Added example recipes")
}