Skip to content

Commit

Permalink
Add better help text for key generate
Browse files Browse the repository at this point in the history
and add `required: true` on `ap --ssid`
  • Loading branch information
reconbot committed Dec 6, 2015
1 parent 9940a63 commit 2e03986
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bin/tessel-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,19 @@ 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() {
logs.info('Key successfully generated.');
})
.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', {
Expand Down Expand Up @@ -307,6 +307,7 @@ makeCommand('version')
makeCommand('ap')
.option('ssid', {
abbr: 'n',
required: true,
help: 'Name of the network.'
})
.option('pass', {
Expand Down

0 comments on commit 2e03986

Please sign in to comment.