Skip to content

Commit

Permalink
Refactor cli
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 16, 2015
1 parent b3092f8 commit d656ebf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ function detect(value) {
'blacklist': blacklist
};
if (all) {
(franc.all(value, param))
.filter(function (a) { console.log(a[0] + ' ' + a[1]) } );
franc.all(value, param).map(function (language) {
console.log(language[0] + ' ' + language[1]);
});
} else {
console.log(franc(value, param));
}
Expand Down

0 comments on commit d656ebf

Please sign in to comment.