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
To include the comments of the `.xml`/`.strings` input file in the output file, add the `-p` (also`--print-comments`) flag. Note that it will be ignored for other input file types.
308
+
To include the comments of the `.xml`/`.strings` input file in the output file, add the `-p` (or`--print-comments`) option. Note that it will be ignored for other input file types.
To convert multiple files at once and save them to the specified directory passed in the `-d`flag, use the`-t`flag followed by the desired file type extension (e.g., `.json`). Note that the program will create the directory if it doesn't exist.
316
+
To convert multiple files at once and save them in the specified directory specified with the `-d`option, use the`-t`option followed by the desired file type extension (e.g., `.json`). Note that the program will create the directory if it doesn't exist.
|`-h` or `--help`| Displays help text for the program. |
349
-
|`-f` or `--output-filepath`| Path to save the converted file. Only works if only one input file is provided. The file extension can be chosen from [the list of supported file types](#file-types-supported). |
350
-
|`-d` or `--output-dir`| Directory where the converted files will be saved. Compatible with single and multiple input files as well as directories. The specified directory will be created if it does not already exist. |
351
-
|`-t` or `--target-type`| Target file type to convert the files (e.g., .pdf, .json). Required if multiple file paths or the `--output-dir` is specified. |
352
-
|`-g` or `--google-sheets`| If provided, a Google spreadsheet will be created in your Google account. You must pass the `service_account.json` with the `-c` flag. |
353
-
|`-c` or `--credentials`|`service_account.json` filepath. Mandatory if you want to generate a spreadsheet in your Google account. You can learn how to generate it in the [Generating a Spreadsheet in Google Sheets](#generating-a-spreadsheet-in-google-sheets) section. |
354
-
|`-p` or `--print-comments`| If provided, the commented strings will be printed in the output file. Only valid for input files of type `.xml` or `.strings`. Otherwise it is ignored. |
346
+
#### Script Arguments
347
+
348
+
A full list of the program command's options are as follows:
|`-v, --version`| Show script version info and exit. |
362
+
|`-f FILE_PATH, --output-file FILE_PATH`| File path to save the converted file. Only works if only one input file is provided. See [the list of supported file types](#file-types-supported). |
363
+
|`-d DIR_PATH, --output-dir DIR_PATH`| Directory path where the converted files will be saved. Compatible with single and multiple input files as well as directories. The specified directory will be created if it does not already exist. |
364
+
|`-t FILE_TYPE, --target-type FILE_TYPE`| Target file type to convert the files. Required when specifying multiple file paths or `--output-dir`. See [the list of supported file types](#file-types-supported). |
365
+
|`-g CREDENTIALS_PATH, --google-sheets CREDENTIALS_PATH`| Create a Google spreadsheet with the output in your Google account. You must specify the `service_account.json` path. You can learn how to generate it in the [Generating a Spreadsheet in Google Sheets](#generating-a-spreadsheet-in-google-sheets) section. |
366
+
|`-p, --print-comments`| Print commented strings from the input file to the output file. Only valid for `.xml` or `.strings` input file types, otherwise it is ignored. |
355
367
356
368
<palign="right">(<ahref="#top">back to top</a>)</p>
0 commit comments