Skip to content

Commit

Permalink
Fix missing verbose flag in legacy cli
Browse files Browse the repository at this point in the history
The verbose flag was missing in the flag definition and has now been
added.
  • Loading branch information
Patrick Pichler authored and patrickpichler committed Jan 25, 2021
1 parent 4c53146 commit 211dcbe
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cmd/monaco/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ Examples:
Deploy a specific project to a specific tenant:
monaco --environments environments.yaml --specific-environment dev --project myProject
`
app.Flags = []cli.Flag{
&cli.BoolFlag{
Name: "verbose",
Aliases: []string{"v"},
},
}

app.Before = func(c *cli.Context) error {
err := util.SetupLogging(c.Bool("verbose"))

Expand All @@ -112,6 +105,10 @@ Examples:
}

app.Flags = []cli.Flag{
&cli.BoolFlag{
Name: "verbose",
Aliases: []string{"v"},
},
&cli.PathFlag{
Name: "environments",
Usage: "Yaml file containing environment to deploye to",
Expand Down

0 comments on commit 211dcbe

Please sign in to comment.