#!/usr/bin/env node

var program = require('commander');

program
  .version(require('./package.json').version)
  .usage('[options]')
  .option('-l, --live', 'Shows the live weather')
  .option('-h, --host [host]', 'The HOST, default to "localhost"')
  .option('-p, --port [port]', 'The PORT, default to "4223"', parseInt)
  .option('-w, --wait [time]', 'The Callback time in milliseconds, default to "1000" ms', parseInt)
  .parse(process.argv);
/* istanbul ignore next */
if (!program.args.length) {
  var w = require('./weather.js');
  if (program.host === null) {
    program.host = 'localhost';
  }
  if (program.port === null) {
    program.port = 4223;
  }

  if (program.live) {
    if (program.wait === null) {
      program.wait = 1000;
    }
    w.get(program.host, program.port, program.wait, live = true);
  } else {
    w.get(program.host, program.port, live = false);
  }
} else {
  program.help();
}

@@ -532,24 +532,25 @@
 js');%0A  if (
+!
 program.host
@@ -549,25 +549,16 @@
 ram.host
- === null
 ) %7B%0A    
@@ -591,24 +591,25 @@
 ;%0A  %7D%0A  if (
+!
 program.port
@@ -608,25 +608,16 @@
 ram.port
- === null
 ) %7B%0A    
@@ -668,24 +668,25 @@
 ) %7B%0A    if (
+!
 program.wait
@@ -689,17 +689,8 @@
 wait
- === null
 ) %7B%0A

improve it