Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix issue when passing files as arguments in CLI
Browse files Browse the repository at this point in the history
Fixes #60
  • Loading branch information
brrd committed Apr 7, 2016
1 parent edaf1ff commit 5abd8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/abr-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ AbrApplication.prototype = {

// Open documents in argv if exist, otherwise open a new document
run: function (argv) {
argv = argv || process.argv;
argv = argv && argv.length > 0 ? argv : process.argv;
var argvDocs = argv.filter(function (element) {
return element.substring(0, 2) !== "--" && files.isTextFile(element);
});
Expand Down

0 comments on commit 5abd8ba

Please sign in to comment.