mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-04 11:30:14 -05:00
Parse Args for dolt admin show-root
The command doesn't have any args, but parsing them will make --help work.
This commit is contained in:
@@ -61,6 +61,11 @@ func (cmd ShowRootCmd) Hidden() bool {
|
||||
// Version displays the version of the running dolt client
|
||||
// Exec executes the command
|
||||
func (cmd ShowRootCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int {
|
||||
ap := cmd.ArgParser()
|
||||
usage, _ := cli.HelpAndUsagePrinters(cli.CommandDocsForCommandString(commandStr, cli.CommandDocumentationContent{}, ap))
|
||||
|
||||
cli.ParseArgsOrDie(ap, args, usage)
|
||||
|
||||
db := doltdb.HackDatasDatabaseFromDoltDB(dEnv.DoltDB)
|
||||
dss, err := db.Datasets(ctx)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user