Browse Source

let each api manage it's owns subcommands

pull/14/head
Brett Langdon 11 years ago
parent
commit
81923ef3da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/dogapi

+ 1
- 1
bin/dogapi View File

@ -50,7 +50,7 @@ if(command === "now"){
} else if(command === "then" && args._.length > 3){
console.log(dogapi.now() - parseInt(args._[args._.length - 1]));
} else if(dogapi.hasOwnProperty(command)){
if(subcommand && dogapi[command].hasOwnProperty(subcommand)){
if(subcommand){
dogapi[command].handleCli(subcommand, args, function(err, res){
if(err){
console.error(err);


Loading…
Cancel
Save