Skip to content

Commit

Permalink
Merge branch 'feature/Usage' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
VovanR committed Dec 12, 2015
2 parents 2e5108a + 626e760 commit ac22f3d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ npm install --global bemstyla
## Usage

```
$ bemstyla --help
bemstyla --help
Usage: bemstyla [options]
Expand All @@ -51,14 +51,16 @@ $ bemstyla --help
-h, --help output usage information
-V, --version output the version number
-t, --type [type] file type [styl]
-d, --dir [value] output files location
Examples:
$ bemstyla -h
$ bemstyla block__elem
$ bemstyla foo_size_small
$ bemstyla bar__baz_qux -t css
$ bemstyla block__foo block__bar_baz foo__bar foo__qux
bemstyla -h
bemstyla block__elem
bemstyla block__foo block__bar_baz foo__bar foo__qux
bemstyla header.jade footer.html
bemstyla -t css bar__baz_qux
bemstyla -d styles/blocks blockname
```

### [Jade](http://jade-lang.com/) file support
Expand All @@ -80,8 +82,15 @@ bemstyla _content.html _sidebar.html _footer.html
Default: `styl`

```sh
bemstyla block__elem -t less
bemstyla block__elem --type css
bemstyla -t less block__elem
bemstyla --type css block__elem
```

### Output file location

```sh
bemstyla -d css/components block__elem
bemstyla --dir styles/blocks block__elem
```

## Solutions with the same functionality
Expand Down
12 changes: 6 additions & 6 deletions bin/bemstyla.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ program
.on('--help', function () {
console.log(' Examples:');
console.log('');
console.log(' $ bemstyla -h');
console.log(' $ bemstyla block__elem');
console.log(' $ bemstyla foo_size_small');
console.log(' $ bemstyla bar__baz_qux -t css');
console.log(' $ bemstyla block__foo block__bar_baz foo__bar foo__qux');
console.log(' $ bemstyla blockname -d styles/blocks');
console.log(' bemstyla -h');
console.log(' bemstyla block__elem');
console.log(' bemstyla block__foo block__bar_baz foo__bar foo__qux');
console.log(' bemstyla header.jade footer.html');
console.log(' bemstyla -t css bar__baz_qux');
console.log(' bemstyla -d styles/blocks blockname');
console.log('');
})
.parse(process.argv);
Expand Down

0 comments on commit ac22f3d

Please sign in to comment.