mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 00:39:44 -06:00
Making arg descriptions more consistent, and adding a test that asserts storage format is not displayed by default
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user