Skip to content

Commit

Permalink
fixed a silly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsha committed Sep 10, 2020
1 parent a05a6f3 commit 8a6b5b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func main() {

mode := parser.String("m", "mode",
&argparse.Options{
Default: 1,
Required: false,
Help: "storage or app"})

Expand Down Expand Up @@ -116,6 +115,13 @@ func main() {
zerolog.SetGlobalLevel(zerolog.PanicLevel)
}

// check mode

if *mode != "storage" && *mode != "app" {

log.Fatal().Msg("Invalid mode use app or storage")
}

// initialize config.yaml
configPath := path.Join(*configFolder, "config.yaml")
providerPath := path.Join(*configFolder, "modules")
Expand Down

0 comments on commit 8a6b5b3

Please sign in to comment.