Update cli.md

This commit is contained in:
Ido 2015-01-04 12:15:14 +02:00
parent 0f86ec65c1
commit d7e12a9b65
1 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
## Installation ## Installation
```shell ```shell
npm install git+ssh://git@github.com:wix/react-templates -g npm install react-templates -g
``` ```
## Usage ## Usage
@ -17,7 +17,7 @@ rt dir/file.rt
## Options ## Options
The command line utility has several options. You can view the options by running `eslint -h`. The command line utility has several options. You can view the options by running `rt -h`.
``` ```
Usage: Usage:
$ rt <filename>[,<filename>] [<args>] $ rt <filename>[,<filename>] [<args>]
@ -25,7 +25,7 @@ $ rt <filename>[,<filename>] [<args>]
Options: Options:
-h, --help Show help. -h, --help Show help.
-c, --color Use colors in output. - default: true -c, --color Use colors in output. - default: true
-m, --common Use Common JS output. - default: false -m, --modules String Use output modules. (amd|commonjs|none) - default: none
-r, --force Force creation of output. skip file check. - default: false -r, --force Force creation of output. skip file check. - default: false
-f, --format String Use a specific output format. (stylish|json) - default: stylish -f, --format String Use a specific output format. (stylish|json) - default: stylish
-t, --target-version String React version to generate code for (0.12.1, 0.12.0, 0.11.2, 0.11.1, 0.11.0, 0.10.0) - default: 0.12.1 -t, --target-version String React version to generate code for (0.12.1, 0.12.0, 0.11.2, 0.11.1, 0.11.0, 0.10.0) - default: 0.12.1
@ -45,10 +45,10 @@ The option enable or disable color in the output.
This option allows to override the output file even if there are no changes. This option allows to override the output file even if there are no changes.
### `-m`, `--common` ### `-m`, `--modules`
Use Common JS output. Use output modules. (amd|commonjs|none) - default: none
### `-f`, `--format` ### `-f`, `--format`
Use Common JS output. Use a specific output format.