#!/usr/bin/env node

var program = require('commander');
var connected = require('./connected.js');

program
  .version(require('./package.json').version)
  .usage('[options] list')
  .option('-a, --advanced', 'Shows advanced information')
  .option('-h, --host [host]', 'The HOST, default to "localhost"')
  .option('-p, --port [port]', 'The PORT, default to "4223"', parseInt)
  .parse(process.argv);

if (!program.args.length) {
  program.help();
} else {
  connected.get();
}

@@ -431,20 +431,21 @@
 %7B%0A  
-program.help
+connected.get
 ();%0A
@@ -451,31 +451,30 @@
 %0A%7D else %7B%0A  
-connected.get
+program.help
 ();%0A%7D%0A

improve command