Skip to content

Commit

Permalink
Handle missed command flags (-t)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Sep 8, 2015
1 parent 9e0e3d5 commit 332b8cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ var minimist = require('minimist');
var cleanHelpCommand = require('./clean-help-command')

var argv = minimist(process.argv.slice(2))
Object.keys(argv)
.filter(function (arg) {
return arg !== '_'
})
.forEach(function (arg) {
argv._.push('-' + arg)
})
var command = argv._.join(' ')

dokkuGitRemoteParser(function (err, host, appName) {
Expand Down

0 comments on commit 332b8cd

Please sign in to comment.