You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-24Lines changed: 30 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,22 +157,26 @@ You can use `xcs --help` or `xcs <sub-command> --help` to see the list of comman
157
157
158
158
## Commands
159
159
160
-
### Global options
160
+
**Global options:**
161
161
162
-
*`--help, -h`: `boolean` (Optional)
163
-
* Show help.
164
-
*`--version, -v`: `boolean` (Optional)
165
-
* Show version.
166
162
*`--config`: `string` (Optional)
167
163
* The custom config file path. If not specified, `xcs` will look for`xcstrings-cli.json` or `xcstrings-cli.json5`in the current folder or its parent folders until the root.
164
+
*`--help, -h`: `boolean` (Optional)
165
+
* Show help.
168
166
*`--path`: `string` (Optional)
169
167
* The xcstrings file path. Defaults to `Localizable.xcstrings`in the current directory, or to the first `xcstringsPaths` entry in the config when present.
170
168
* You can also specify the alias you setin the config file. (`xcstringsPaths` entry with `alias` field)
169
+
*`--version, -v`: `boolean` (Optional)
170
+
* Show version.
171
171
172
172
### `add` command
173
173
174
174
Adds/updates one or more strings to the xcstrings file.
175
175
176
+
**`add`command options:**
177
+
178
+
*`--comment`: `string` (Optional)
179
+
* The comment for the string to add, intended for translators.
176
180
*`--interactive, -i`: `boolean` (Optional)
177
181
* Start interactive mode to add strings.
178
182
* This is useful when you don't want to record a huge command to your terminal history.
@@ -183,8 +187,6 @@ Adds/updates one or more strings to the xcstrings file.
183
187
* Ignored if `--text` is not provided.
184
188
* If not specified, it uses the source language defined as `sourceLanguage` in the xcstrings file.
185
189
* Validation follows `missingLanguagePolicy`: `skip` requires the language to be supported; `include` allows any language.
186
-
* `--text`: `string` (Optional)
187
-
* The string value for the language. If omitted, the key is created without a localization for the default language.
0 commit comments