From 974be5cc13cb33ba6110fc5e9d6b5b51a9864b2f Mon Sep 17 00:00:00 2001 From: Gergely Imreh Date: Mon, 29 May 2017 13:59:25 +0100 Subject: [PATCH] resin build: fix mismatch in command line argument signature The command line arg was taking `devicetype`, but the rest of the code uses `deviceType`. Thus it was impossible to specify a device type in practice to build a `Dockerfile.template`. Change-type: patch Signed-off-by: Gergely Imreh --- CHANGELOG.md | 4 ++++ build/actions/build.js | 2 +- doc/cli.markdown | 2 +- lib/actions/build.coffee | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f5c2cdb..2a0d1611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +### Fixed + +- Fixed command line arguments for `resin build` + ## [5.10.1] - 2017-05-22 ### Fixed diff --git a/build/actions/build.js b/build/actions/build.js index 870b6d91..0d9f6c50 100644 --- a/build/actions/build.js +++ b/build/actions/build.js @@ -31,7 +31,7 @@ module.exports = { description: 'The architecture to build for', alias: 'A' }, { - signature: 'devicetype', + signature: 'deviceType', parameter: 'deviceType', description: 'The type of device this build is for', alias: 'd' diff --git a/doc/cli.markdown b/doc/cli.markdown index 94057e1b..3ae8f00c 100644 --- a/doc/cli.markdown +++ b/doc/cli.markdown @@ -1304,7 +1304,7 @@ Examples: The architecture to build for -#### --devicetype, -d <deviceType> +#### --deviceType, -d <deviceType> The type of device this build is for diff --git a/lib/actions/build.coffee b/lib/actions/build.coffee index edcf8143..c0a355fe 100644 --- a/lib/actions/build.coffee +++ b/lib/actions/build.coffee @@ -45,7 +45,7 @@ module.exports = alias: 'A' }, { - signature: 'devicetype' + signature: 'deviceType' parameter: 'deviceType' description: 'The type of device this build is for' alias: 'd'