This repository was archived by the owner on Jan 7, 2025. It is now read-only.
File tree 4 files changed +10
-6
lines changed 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ speechly convert [flags]
11
11
### Flags
12
12
13
13
* ` --help ` ` -h ` _ (bool)_ - help for convert
14
- * ` --language ` ` -l ` _ (string)_ - Language of input
14
+ * ` --language ` ` -l ` _ (string)_ - Language of input (default 'en-US')
15
15
16
16
### Examples
17
17
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Creates a new application in the current project and a config file in the curren
13
13
### Flags
14
14
15
15
* ` --help ` ` -h ` _ (bool)_ - help for create
16
- * ` --language ` ` -l ` _ (string)_ - Application language. See docs for available options https://docs.speechly.com/basics/models
16
+ * ` --language ` ` -l ` _ (string)_ - Application language. See docs for available options https://docs.speechly.com/basics/models (default 'en-US')
17
17
* ` --name ` ` -n ` _ (string)_ - Application name. Can be given as the sole positional argument.
18
18
* ` --output-dir ` ` -o ` _ (string)_ - Output directory for the config file.
19
19
Original file line number Diff line number Diff line change @@ -118,11 +118,15 @@ func flags(c *cobra.Command) string {
118
118
if c .HasFlags () {
119
119
b .WriteString ("### Flags\n \n " )
120
120
c .Flags ().VisitAll (func (f * flag.Flag ) {
121
- vt := f .Value .Type ()
121
+ valType := f .Value .Type ()
122
+ defValue := ""
123
+ if valType == "string" && f .DefValue != "" {
124
+ defValue = " (default '" + f .DefValue + "')"
125
+ }
122
126
if f .Shorthand == "" {
123
- b .WriteString ("* `--" + f .Name + "` _(" + vt + ")_ - " + f .Usage + "\n " )
127
+ b .WriteString ("* `--" + f .Name + "` _(" + valType + ")_ - " + f .Usage + defValue + "\n " )
124
128
} else {
125
- b .WriteString ("* `--" + f .Name + "` `-" + f .Shorthand + "` _(" + vt + ")_ - " + f .Usage + "\n " )
129
+ b .WriteString ("* `--" + f .Name + "` `-" + f .Shorthand + "` _(" + valType + ")_ - " + f .Usage + defValue + "\n " )
126
130
}
127
131
})
128
132
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ speechly projects add [flags]
12
12
13
13
* ` --apikey ` _ (string)_ - API token, created in Speechly Dashboard. Can also be given as the sole positional argument.
14
14
* ` --help ` ` -h ` _ (bool)_ - help for add
15
- * ` --host ` _ (string)_ - API address
15
+ * ` --host ` _ (string)_ - API address (default 'api.speechly.com')
16
16
* ` --name ` _ (string)_ - An unique name for the project. If not given the project name configured in Speechly Dashboard will be used.
17
17
* ` --skip-online-validation ` _ (bool)_ - Skips validating the API token against the host.
18
18
You can’t perform that action at this time.
0 commit comments