diff options
-rw-r--r-- | flags.go | 17 | ||||
-rw-r--r-- | main.go | 4 |
2 files changed, 20 insertions, 1 deletions
diff --git a/flags.go b/flags.go new file mode 100644 index 0000000..2696ce4 --- /dev/null +++ b/flags.go @@ -0,0 +1,17 @@ +package main + +import ( + "flag" + "fmt" +) + +const help = `Ceres - A recipe server for your home network +` + +func parseFlags() { + flag.Usage = func() { + fmt.Fprintf(flag.CommandLine.Output(), help) + } + + flag.Parse() +} @@ -9,14 +9,16 @@ import ( "os/signal" "syscall" + "xengineering.eu/ceres/controller" "xengineering.eu/ceres/model" "xengineering.eu/ceres/view" - "xengineering.eu/ceres/controller" "github.com/gorilla/mux" ) func main() { + parseFlags() + model.InitStorage() defer model.RemoveStorage() |