Permalink
Browse files

now works without arguments again

  • Loading branch information...
1 parent e0205c4 commit acd89c1153292716256a48a4ea0305b60a1afb35 @coolaj86 coolaj86 committed Jan 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/highlight-cli.js
View
@@ -17,7 +17,7 @@
filename = null;
}
- langArg = process.argv[langArgIndex - 1];
+ langArg = process.argv[langArgIndex - 1] || '';
if (langArg = langArg.match(/--languages(=(.*))?/)) {
langs = (process.argv[langArgIndex]||'').split(/\s*,\s*/g);

0 comments on commit acd89c1

Please sign in to comment.