mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 09:51:58 +00:00
Make deviceOption required
This commit is contained in:
parent
b5701f53f5
commit
5ec4abc710
@ -5,9 +5,6 @@ helpers = require('../helpers/helpers')
|
|||||||
resin = require('resin-sdk')
|
resin = require('resin-sdk')
|
||||||
|
|
||||||
exports.set = permissions.user (params, options) ->
|
exports.set = permissions.user (params, options) ->
|
||||||
if not options.device?
|
|
||||||
errors.handle(new Error('You have to specify a device'))
|
|
||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
|
|
||||||
(callback) ->
|
(callback) ->
|
||||||
|
@ -65,6 +65,7 @@ deviceOption =
|
|||||||
parameter: 'device'
|
parameter: 'device'
|
||||||
description: 'device id'
|
description: 'device id'
|
||||||
alias: [ 'd', 'dev' ]
|
alias: [ 'd', 'dev' ]
|
||||||
|
required: 'You have to specify a device'
|
||||||
|
|
||||||
# ---------- Auth Module ----------
|
# ---------- Auth Module ----------
|
||||||
capitano.command
|
capitano.command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user