Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

adding detailed example to cli --help #1178

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions bin/node-sass
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ var cli = meow({
pkg: '../package.json',
version: process.sass.versionInfo,
help: [
'Usage',
'Usage:',
' node-sass [options] <input.scss> [output.css]',
' cat <input.scss> | node-sass [options] > output.css',
'',
'Example',
'Examples:',
' node-sass --output-style compressed foobar.scss foobar.css',
' cat foobar.scss | node-sass --output-style compressed > foobar.css',
' node-sass --recursive --output-style compact --source-map css/style.map',
' --source-map-contents --output css --include-path sass css/style.css',
'',
'Options',
' -w, --watch Watch a directory or file',
Expand Down Expand Up @@ -366,9 +368,11 @@ if (!options.src && process.stdin.isTTY) {
emitter.emit('error', [
'Provide a Sass file to render',
'',
' Example',
' Examples:',
' node-sass --output-style compressed foobar.scss foobar.css',
' cat foobar.scss | node-sass --output-style compressed > foobar.css'
' cat foobar.scss | node-sass --output-style compressed > foobar.css',
' node-sass --recursive --output-style compact --source-map css/style.map',
' --source-map-contents --output css --include-path sass css/style.css',
].join('\n'));
}

Expand Down