Skip to content

Commit 8c461ad

Browse files
committed
Write <id> again in the database command's usage
A placeholder is syntax, like the `<cmd>`, `[out]` and `<output>` beside it, so it keeps the lowercase every other placeholder in the help has. The prose around it is what writes ID. b0774e2 had read the placeholder as prose.
1 parent 0893cdf commit 8c461ad

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎cmd_database.go‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Description:
3232
3333
Commands:
3434
list published databases, with your license beside each.
35-
metadata <ID> what is inside one: columns, row count, sizes, build date.
36-
checksum <ID> digests of one published file.
37-
download <ID> [out] fetch it, verifying the checksum.
38-
url <ID> print a time-limited download URL, for curl or wget.
35+
metadata <id> what is inside one: columns, row count, sizes, build date.
36+
checksum <id> digests of one published file.
37+
download <id> [out] fetch it, verifying the checksum.
38+
url <id> print a time-limited download URL, for curl or wget.
3939
downloads your organization's recent download attempts.
4040
4141
Examples:
@@ -104,22 +104,22 @@ func cmdDatabase() error {
104104
return dbList(ctx, db, fJSON)
105105
case "metadata", "meta":
106106
if len(args) != 2 {
107-
return errors.New("usage: database metadata <ID>")
107+
return errors.New("usage: database metadata <id>")
108108
}
109109
return dbMetadata(ctx, db, args[1])
110110
case "checksum", "checksums":
111111
if len(args) != 2 {
112-
return errors.New("usage: database checksum <ID>")
112+
return errors.New("usage: database checksum <id>")
113113
}
114114
return dbChecksum(ctx, db, args[1], fFormat, fJSON)
115115
case "url":
116116
if len(args) != 2 {
117-
return errors.New("usage: database url <ID>")
117+
return errors.New("usage: database url <id>")
118118
}
119119
return dbURL(ctx, db, args[1], fFormat)
120120
case "download", "dl":
121121
if len(args) < 2 || len(args) > 3 {
122-
return errors.New("usage: database download <ID> [<output>]")
122+
return errors.New("usage: database download <id> [<output>]")
123123
}
124124
out := ""
125125
if len(args) == 3 {

0 commit comments

Comments
 (0)
⌂ 换网址