tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
229 stars 37 forks source link

chore: remove repetition of default value in `--type` & `--csv-separator` flag help text #843

Closed kevinmitch14 closed 7 months ago

kevinmitch14 commented 7 months ago

When running turso db create -h, the description for --type repeats the default value of "regular". Removed this from the usage string so it now just uses the default value from cmd.Flags().StringVar()

cmd.Flags().StringVar(&typeFlag, "type", "regular", "...")

Before:

Flags:
 --type string Type of the database to create. Possible values: regular, schema. Default: regular. (default "regular")

After:

Flags:
--type string Type of the database to create. Possible values: regular, schema. (default "regular")

EDIT: Noticed this was also the case in --csv-separator so changed that too.

Before:

Flags:
--csv-separator string CSV separator character. Must be a single character. Defaults to ',' (default ",")

After:

Flags:
--csv-separator string CSV separator character. Must be a single character. (default ",")