From 2e03986deaf3d7af28fffbee694dd165b01e673a Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sat, 5 Dec 2015 21:28:14 -0500 Subject: [PATCH] Add better help text for `key generate` and add `required: true` on `ap --ssid` --- bin/tessel-2.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/tessel-2.js b/bin/tessel-2.js index dafdac8c..2bac63c5 100755 --- a/bin/tessel-2.js +++ b/bin/tessel-2.js @@ -247,11 +247,6 @@ makeCommand('wifi') .help('Configure the wireless connection'); parser.command('key') - .option('method', { - position: 1, - required: true, - choices: ['generate'], - }) .callback(function(opts) { key(opts) .then(function() { @@ -259,7 +254,12 @@ parser.command('key') }) .then(module.exports.closeSuccessfulCommand, module.exports.closeFailedCommand); }) - .help('Generate a local SSH keypair for authenticating a Tessel VM'); + .option('generate', { + position: 1, + required: true, + help: 'Generate a local SSH keypair for authenticating to a Tessel' + }) + .help('Manage ssh keys for connecting to a Tessel'); makeCommand('rename') .option('newName', { @@ -307,6 +307,7 @@ makeCommand('version') makeCommand('ap') .option('ssid', { abbr: 'n', + required: true, help: 'Name of the network.' }) .option('pass', {