lib: Update for urfave/cli v2
This commit is contained in:
@@ -35,7 +35,7 @@ import (
|
||||
|
||||
// run is the main run target.
|
||||
func run(c *cli.Context, name string, gapiObj gapi.GAPI) error {
|
||||
cliContext := c.Parent() // these are the flags from `run`
|
||||
cliContext := c.Lineage()[1] // these are the flags from `run`
|
||||
if cliContext == nil {
|
||||
return fmt.Errorf("could not get cli context")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user