mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
Parse subcommands before main command arguments int the CLI
This commit is contained in:
parent
05a56388a9
commit
964be85e6d
1 changed files with 6 additions and 5 deletions
11
main.go
11
main.go
|
|
@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue