mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 09:26:42 +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')
|
||||
|
||||
exports.set = permissions.user (params, options) ->
|
||||
if not options.device?
|
||||
errors.handle(new Error('You have to specify a device'))
|
||||
|
||||
async.waterfall([
|
||||
|
||||
(callback) ->
|
||||
|
@ -65,6 +65,7 @@ deviceOption =
|
||||
parameter: 'device'
|
||||
description: 'device id'
|
||||
alias: [ 'd', 'dev' ]
|
||||
required: 'You have to specify a device'
|
||||
|
||||
# ---------- Auth Module ----------
|
||||
capitano.command
|
||||
|
Loading…
x
Reference in New Issue
Block a user