mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
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:
parent
c9919a90a8
commit
01cad3c048
@ -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'
|
||||
|
@ -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) {
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user