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