Parse subcommands before main command arguments int the CLI

This commit is contained in:
Christian Rocha 2020-05-25 13:05:32 -04:00 committed by Christian Muehlhaeuser
commit 964be85e6d

11
main.go
View file

@ -30,11 +30,12 @@ var (
width uint
rootCmd = &cobra.Command{
Use: "glow SOURCE",
Short: "Render markdown on the CLI, with pizzazz!",
SilenceErrors: false,
SilenceUsage: false,
RunE: execute,
Use: "glow SOURCE",
Short: "Render markdown on the CLI, with pizzazz!",
SilenceErrors: false,
SilenceUsage: false,
TraverseChildren: true,
RunE: execute,
}
)