Skip to content

Commit

Permalink
Move usage info to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
justjohn committed Apr 2, 2012
1 parent a3c3f5c commit 9f86286
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions bin/packagejs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ if (files.length == 0) {
}

function printUsage(stream) {
stream.write("Usage:\n\t");
stream.write(thisFile + " [--help] [--compress] [--output file] input.js\n");
fs.createReadStream(__dirname + "/../doc/USAGE").pipe(stream);
}

function write(data) {
Expand Down
8 changes: 8 additions & 0 deletions doc/USAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Usage:
packagejs [--help] [--compress] [--output file] input.js

Options
--help Display this help message.
--compress Use UglifyJS to compress the output JS file.
--output [file] The file name for the output of packagejs.

0 comments on commit 9f86286

Please sign in to comment.