Skip to content

Commit

Permalink
Clarify docs for --source-map. Closes #1026.
Browse files Browse the repository at this point in the history
It is not clear from the `--help` docs that `--source-map` requires a boolean or path. Passing the flag alone results in a TypeError. There's an argument to be made that passing the flag alone should imply `true`, or at the very least it should fail with a helpful error, not a cryptic TypeError. For now, this PR fixes the --help docs so that they match the README.
  • Loading branch information
Matt Kane authored and xzyfer committed May 8, 2018
1 parent 8c4808a commit e3ab6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/node-sass
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var cli = meow({
' --indent-width Indent width; number of spaces or tabs (maximum value: 10)',
' --linefeed Linefeed style (cr | crlf | lf | lfcr)',
' --source-comments Include debug info in output',
' --source-map Emit source map',
' --source-map Emit source map (boolean, or path to output .map file)',
' --source-map-contents Embed include contents in map',
' --source-map-embed Embed sourceMappingUrl as data URI',
' --source-map-root Base path, will be emitted in source-map as is',
Expand Down

0 comments on commit e3ab6e1

Please sign in to comment.