From cab54c904ab5ad101c056ab51de13abce4accd73 Mon Sep 17 00:00:00 2001 From: jialiya Date: Tue, 18 Nov 2014 19:48:45 -0800 Subject: [PATCH] fixes to take in args the same way as --- bin/tessel-push.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/tessel-push.js b/bin/tessel-push.js index 9d929c1..37ab4af 100755 --- a/bin/tessel-push.js +++ b/bin/tessel-push.js @@ -27,8 +27,8 @@ var argv = require("nomnom") full: 'script.js', help: 'Run this script on Tessel.', }) - .option('args', { - abbr: 'a', + .option('arguments', { + position: 1, list: true, help: 'Arguments to pass in as process.argv.' }) @@ -120,7 +120,7 @@ common.controller({stop: true}, function (err, client) { }); function pushCode(){ - client.run(pushpath, ['tessel', pushpath].concat(argv.args || []), { + client.run(pushpath, ['tessel', pushpath].concat(argv.arguments || []), { flash: true, single: argv.single, compileBytecode: argv.bytecode,