Permalink
Browse files

Pass through new wrap_line_length option, with 'unlimited' default (0).

  • Loading branch information...
1 parent fceb77b commit 862bc423fa235117997888422c38f699b7218621 @evocateur committed Mar 13, 2013
Showing with 5 additions and 1 deletion.
  1. +3 −0 cli.js
  2. +2 −1 config/defaults.json
View
3 cli.js
@@ -22,6 +22,7 @@ var fs = require('fs'),
"break_chained_methods": Boolean,
"keep_array_indentation": Boolean,
"unescape_strings": Boolean,
+ "wrap_line_length": Number,
// CLI
"version": Boolean,
"help": Boolean,
@@ -46,6 +47,7 @@ var fs = require('fs'),
"B": ["--break_chained_methods"],
"k": ["--keep_array_indentation"],
"x": ["--unescape_strings"],
+ "w": ["--wrap_line_length"],
// non-dasherized hybrid shortcuts
"good-stuff": [
"--keep_array_indentation",
@@ -125,6 +127,7 @@ function usage(err) {
' -B, --break-chained-methods Break chained method calls across subsequent lines',
' -k, --keep-array-indentation Preserve array indentation',
' -x, --unescape-strings Decode printable characters encoded in xNN notation',
+ ' -w, --wrap-line-length Wrap lines at next opportunity after N characters [0]',
' --good-stuff Warm the cockles of Crockford\'s heart',
''
];
View
@@ -12,5 +12,6 @@
"space_before_conditional": true,
"break_chained_methods": false,
"eval_code": false,
- "unescape_strings": false
+ "unescape_strings": false,
+ "wrap_line_length": 0
}

0 comments on commit 862bc42

Please sign in to comment.