mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-09 11:19:01 -05:00
Print global arguments for 'dolt --help' but not 'dolt'
This commit is contained in:
@@ -427,6 +427,15 @@ func runMain() int {
|
||||
globalArgs, args, initCliContext, printUsage, err := splitArgsOnSubCommand(args)
|
||||
if printUsage {
|
||||
doltCommand.PrintUsage("dolt")
|
||||
_, usage := cli.HelpAndUsagePrinters(cli.CommandDocsForCommandString("dolt", doc, globalArgParser))
|
||||
|
||||
specialMsg := `
|
||||
Dolt subcommands are in transition to using the flags listed below as global flags.
|
||||
The sql subcommand is currently the only command that uses these flags. All other commands will ignore them.
|
||||
`
|
||||
cli.Println(specialMsg)
|
||||
usage()
|
||||
|
||||
return 0
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user