Skip to content

Commit 2b03fa9

Browse files
committed
Fixes #3166 -- add a (simpler) flag to suppress the generated header.
1 parent cfdb774 commit 2b03fa9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/coffee-script/command.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/command.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ SWITCHES = [
4343
['-m', '--map', 'generate source map and save as .map files']
4444
['-n', '--nodes', 'print out the parse tree that the parser produces']
4545
[ '--nodejs [ARGS]', 'pass options directly to the "node" binary']
46+
[ '--no-header', 'suppress the "Generated by" header']
4647
['-o', '--output [DIR]', 'set the output directory for compiled JavaScript']
4748
['-p', '--print', 'print out the compiled JavaScript']
4849
['-s', '--stdio', 'listen for and compile scripts over stdio']
@@ -319,7 +320,7 @@ compileOptions = (filename, base) ->
319320
filename
320321
literate: opts.literate or helpers.isLiterate(filename)
321322
bare: opts.bare
322-
header: opts.compile
323+
header: opts.compile and not opts['no-header']
323324
sourceMap: opts.map
324325
}
325326
if filename

0 commit comments

Comments
 (0)