update README
This commit is contained in:
parent
1db4794ee9
commit
8fd157802b
33
README.md
33
README.md
@ -78,7 +78,7 @@ _('Extract me');
|
|||||||
`ngx-translate-extract ... -m _`
|
`ngx-translate-extract ... -m _`
|
||||||
|
|
||||||
## Commandline arguments
|
## Commandline arguments
|
||||||
```shell
|
```
|
||||||
Usage:
|
Usage:
|
||||||
ngx-translate-extract [options]
|
ngx-translate-extract [options]
|
||||||
|
|
||||||
@ -89,23 +89,22 @@ Options:
|
|||||||
can use path expansion, glob patterns and multiple
|
can use path expansion, glob patterns and multiple
|
||||||
paths
|
paths
|
||||||
[array] [default: current working path]
|
[array] [default: current working path]
|
||||||
--patterns, -p Extract strings from the following file patterns
|
[array] [required] [default: current working path]
|
||||||
|
--patterns, -p Extract strings from the following file patterns
|
||||||
[array] [default: ["/**/*.html","/**/*.ts"]]
|
[array] [default: ["/**/*.html","/**/*.ts"]]
|
||||||
--output, -o Paths where you would like to save extracted
|
--output, -o Paths where you would like to save extracted
|
||||||
strings. You can use path expansion, glob patterns
|
strings. You can use path expansion, glob
|
||||||
and multiple paths [array] [required]
|
patterns and multiple paths [array] [required]
|
||||||
--format, -f Output format
|
--format, -f Output format
|
||||||
[string] [choices: "json", "namespaced-json", "pot"] [default: "json"]
|
[string] [choices: "json", "namespaced-json", "pot"] [default: "json"]
|
||||||
--format-indentation, --fi Output format indentation [string] [default: " "]
|
--format-indentation, --fi Output format indentation [string] [default: " "]
|
||||||
--replace, -r Replace the contents of output file if it exists
|
--replace, -r Replace the contents of output file if it exists
|
||||||
(Merges by default) [boolean] [default: false]
|
(Merges by default) [boolean]
|
||||||
--sort, -s Sort strings in alphabetical order when saving
|
--sort, -s Sort strings in alphabetical order when saving
|
||||||
[boolean] [default: false]
|
[boolean]
|
||||||
--clean, -c Remove obsolete strings when merging
|
--clean, -c Remove obsolete strings when merging [boolean]
|
||||||
[boolean] [default: false]
|
|
||||||
--key-as-default-value, -k Use key as default value for translations
|
--key-as-default-value, -k Use key as default value for translations
|
||||||
[boolean] [default: false]
|
[boolean]
|
||||||
--null-as-default-value, -n Use null as default value for translations
|
--null-as-default-value, -n Use null as default value for translations
|
||||||
[boolean] [default: false]
|
[boolean]
|
||||||
|
```
|
||||||
Arguments key-as-default-value and null-as-default-value are mutually exclusive
|
|
||||||
|
Loading…
Reference in New Issue
Block a user