From 20c6b81047b247337360e789b94f68d8ed75d88d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 24 Mar 2016 20:58:12 -0700 Subject: [PATCH] simplify arguments to `npm run package` --- README.md | 2 +- bin/package.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8b1fc99d..cf5cc007 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ To build for one platform: $ npm run package -- [platform] ``` -Where `[platform]` is `--darwin`, `--linux`, or `--win32`. +Where `[platform]` is `darwin`, `linux`, or `win32`. #### Windows build notes diff --git a/bin/package.js b/bin/package.js index 56918d32..d78865b6 100755 --- a/bin/package.js +++ b/bin/package.js @@ -15,11 +15,11 @@ var BUILD_NAME = config.APP_NAME + '-v' + config.APP_VERSION function build () { var platform = process.argv[2] - if (platform === '--darwin') { + if (platform === 'darwin') { buildDarwin(printDone) - } else if (platform === '--win32') { + } else if (platform === 'win32') { buildWin32(printDone) - } else if (platform === '--linux') { + } else if (platform === 'linux') { buildLinux(printDone) } else { buildDarwin(function (err, buildPath) {