mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-22 18:12:54 +00:00
Merge pull request #405 from resin-io/fix-capitano-error
Fix `Boolean options can't have parameters` error
This commit is contained in:
commit
3083ff0640
@ -75,7 +75,6 @@ limitations under the License.
|
|||||||
|
|
||||||
exports.forceUpdateLock = {
|
exports.forceUpdateLock = {
|
||||||
signature: 'force',
|
signature: 'force',
|
||||||
parameter: 'force',
|
|
||||||
description: 'force action if the update lock is set',
|
description: 'force action if the update lock is set',
|
||||||
boolean: true,
|
boolean: true,
|
||||||
alias: 'f'
|
alias: 'f'
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
var loadConfig;
|
var loadConfig;
|
||||||
|
|
||||||
loadConfig = function(source) {
|
loadConfig = function(source) {
|
||||||
var _, config, configPath, error, fs, jsYaml, path, result;
|
var _, config, configPath, error, error1, fs, jsYaml, path, result;
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
path = require('path');
|
path = require('path');
|
||||||
_ = require('lodash');
|
_ = require('lodash');
|
||||||
@ -105,6 +105,7 @@ limitations under the License.
|
|||||||
resinSync = require('resin-sync');
|
resinSync = require('resin-sync');
|
||||||
patterns = require('../utils/patterns');
|
patterns = require('../utils/patterns');
|
||||||
return Promise["try"](function() {
|
return Promise["try"](function() {
|
||||||
|
var error1;
|
||||||
try {
|
try {
|
||||||
fs.accessSync(path.join(process.cwd(), '.resin-sync.yml'));
|
fs.accessSync(path.join(process.cwd(), '.resin-sync.yml'));
|
||||||
} catch (error1) {
|
} catch (error1) {
|
||||||
|
@ -64,7 +64,6 @@ exports.wifiKey =
|
|||||||
|
|
||||||
exports.forceUpdateLock =
|
exports.forceUpdateLock =
|
||||||
signature: 'force'
|
signature: 'force'
|
||||||
parameter: 'force'
|
|
||||||
description: 'force action if the update lock is set'
|
description: 'force action if the update lock is set'
|
||||||
boolean: true
|
boolean: true
|
||||||
alias: 'f'
|
alias: 'f'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user