Skip to content

Commit

Permalink
Updated CLI examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Mar 27, 2013
1 parent 9b0231c commit 7f814c4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Expand Up @@ -71,28 +71,32 @@ linter.initialize(fileOrUrl, function() {

You can also run AriaLinter from the terminal

```shell
$ npm install -g arialinter
```

Display all the rules

```javascript
$ node index --rules
$ arialinter --rules
```

Execute the linter just for templates

```javascript
$ node index --templates test/testFiles/template.html
$ arialinter --templates test/testFiles/template.html
```

Execute the linter using all the rules of the level A

```javascript
$ node index --level A test/testFiles/index.html
$ arialinter --level A test/testFiles/index.html
```

Execute the linter using all the rules of the level A and the rules that just apply for templates

```javascript
$ node index --level A --templates test/testFiles/index.html
$ arialinter --level A --templates test/testFiles/index.html
```


Expand Down

0 comments on commit 7f814c4

Please sign in to comment.