Skip to content

Commit

Permalink
Update bin/cli.js
Browse files Browse the repository at this point in the history
Passhash support for cli
  • Loading branch information
mlamp committed Dec 15, 2012
1 parent c438962 commit bf55f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (api[argv._[0]]) {
process.exit(1)
}

var trakt = new Trakt({username: argv.user, password: argv.pass});
var trakt = new Trakt({username: argv.user, password: argv.pass, pass_hash: argv.passhash});

trakt.on('error', function(err) {
console.log("Trakt error: " + err.message)
Expand Down Expand Up @@ -103,4 +103,4 @@ function showHelp() {
console.log(" $ trakt -u username -p password account settings")
console.log("\t- Fetches users settings")

}
}

0 comments on commit bf55f62

Please sign in to comment.