tessel/cli — pull request #149 by shokai (2014-10-07 12:08:47+00:00)
Title: bugfix "--args" option on tessel push

I've fixed `--args` option on `tessel push` command.

## this works.
$ tessel run main.js a1b2c3defg

## cannot pass --args option.
$ tessel push main.js --args=a1b2c3defg --logs

I've tested following code, It works.
```javascript
var tessel = require('tessel');
var wifi = require('wifi-cc3000');
var Yo = require('yo-api');

var yo_api_token = process.argv[2]; // argv from "tesssel run", or --args option from "tessel push"
var yo = new Yo(yo_api_token);

var led_green = tessel.led[0].output(1);
setInterval(function(){
if(wifi.isConnected()) led_green.toggle()
}, 500);

wifi.reset();

wifi.on('connect', function(){
console.log('wifi connect');
yo.yo('SHOKAI', function(err, res, body){ // send YO
console.log(err);
console.log(body.toString());
});
});
```