Making arg descriptions more consistent, and adding a test that asserts storage format is not displayed by default

This commit is contained in:
Jason Fulghum
2023-08-30 10:16:08 -07:00
parent 4c09863f14
commit ea4d7fd356
2 changed files with 3 additions and 2 deletions

View File

@@ -55,8 +55,8 @@ func (cmd VersionCmd) Docs() *cli.CommandDocumentation {
func (cmd VersionCmd) ArgParser() *argparser.ArgParser {
ap := argparser.NewArgParserWithMaxArgs(cmd.Name(), 0)
ap.SupportsFlag(featureVersionFlag, "f", "query the feature version of this repository.")
ap.SupportsFlag(verboseFlag, "v", "include additional details on this repository's storage format.")
ap.SupportsFlag(featureVersionFlag, "f", "display the feature version of this repository.")
ap.SupportsFlag(verboseFlag, "v", "display verbose details, including the storage format of this repository.")
return ap
}

View File

@@ -126,6 +126,7 @@ teardown() {
[ "$status" -eq 0 ]
regex='dolt version [0-9]+.[0-9]+.[0-9]+'
[[ "$output" =~ $regex ]] || false
[[ ! "$output" =~ "database storage format" ]] || false
}
@test "no-repo: dolt version does not need write permissions" {