Changed 'bin/usage.txt' to 'bin/usage.js'

This change ensures the usage text always has LF line ending on Linux
master
Futago-za Ryuu 6 years ago
parent 881eb67545
commit 2a7dcdcfbe

@ -193,7 +193,7 @@ while ( args.length > 0 ) {
case "-h":
case "--help":
console.log( fs.readFileSync( path.join( __dirname, "usage.txt" ), "utf8" ).trim() );
console.log( require( "./usage" ) );
process.exit();
break;

@ -1,3 +1,6 @@
"use strict";
module.exports = `
Usage: pegjs [options] [<input_file>] [--]
Options:
@ -49,3 +52,4 @@ Options:
--trace Enable tracing in generated parser
-v, --version Print version information and exit
`;
Loading…
Cancel
Save