Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #48 from hcodes/issue-47
Browse files Browse the repository at this point in the history
Возможность передать аргументы команде при запуске не в TTY
  • Loading branch information
hcodes authored Jul 20, 2016
2 parents e533ede + 2d57293 commit 7671cb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var async = require('async'),
tasks = require('./tasks'),
utils = require('./utils'),
_ = require('lodash'),
isTTY = process.stdin.isTTY,
json,
jsonConfig,
jsonDefault = require('../.yaspellerrc.default.json'),
Expand Down Expand Up @@ -48,12 +49,11 @@ dict.set(program.dictionary, json.dictionary);

report.addReports(program.report || json.report);

if(process.stdin.isTTY && !program.args.length) {
if(isTTY && !program.args.length) {
program.help();
}

async.series(
process.stdin.isTTY ?
isTTY || program.args.length ?
tasks.forResources(program.args, settings) :
tasks.forStdin(settings),
function() {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
"async": "~1.5.2",
"chalk": "~1.1.3",
"commander": "~2.9.0",
"eyo-kernel": "~1.0.2",
"eyo-kernel": "~1.0.4",
"entities": "~1.1.1",
"isutf8": "~2.0.0",
"lodash": "^4.13.0",
"minimatch": "~3.0.2",
"request": "^2.72.0",
"request": "^2.73.0",
"showdown": "~1.4.2",
"strip-json-comments": "~2.0.1",
"xml2js": "~0.4.16",
"xml2js": "~0.4.17",
"yandex-speller": "~1.0.0"
},
"devDependencies": {
"chai": "~3.5.0",
"istanbul": "~0.4.3",
"jscs": "~3.0.4",
"istanbul": "~0.4.4",
"jscs": "~3.0.7",
"jshint": "~2.9.2",
"mocha": "~2.5.3",
"sinon": "^1.17.4"
Expand Down

0 comments on commit 7671cb9

Please sign in to comment.