Fix Boolean options can't have parameters error

This error was introduced as part of
`9cf42462c029e038e09efc961736946be8bfcb9b`, since the `forceUpdateLock`
option being used in the `reboot` command contains a `parameter`
property despite being declared a boolean.

Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-10-28 12:11:57 -04:00
parent c9919a90a8
commit 01cad3c048
3 changed files with 2 additions and 3 deletions

View File

@ -75,7 +75,6 @@ limitations under the License.
exports.forceUpdateLock = {
signature: 'force',
parameter: 'force',
description: 'force action if the update lock is set',
boolean: true,
alias: 'f'

View File

@ -19,7 +19,7 @@ limitations under the License.
var loadConfig;
loadConfig = function(source) {
var _, config, configPath, error, fs, jsYaml, path, result;
var _, config, configPath, error, error1, fs, jsYaml, path, result;
fs = require('fs');
path = require('path');
_ = require('lodash');
@ -105,6 +105,7 @@ limitations under the License.
resinSync = require('resin-sync');
patterns = require('../utils/patterns');
return Promise["try"](function() {
var error1;
try {
fs.accessSync(path.join(process.cwd(), '.resin-sync.yml'));
} catch (error1) {

View File

@ -64,7 +64,6 @@ exports.wifiKey =
exports.forceUpdateLock =
signature: 'force'
parameter: 'force'
description: 'force action if the update lock is set'
boolean: true
alias: 'f'