Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3F7A6200D14 for ; Tue, 3 Oct 2017 23:33:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3DFF01609DE; Tue, 3 Oct 2017 21:33:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7A76D1609BD for ; Tue, 3 Oct 2017 23:33:57 +0200 (CEST) Received: (qmail 44753 invoked by uid 500); 3 Oct 2017 21:33:56 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 44741 invoked by uid 99); 3 Oct 2017 21:33:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2017 21:33:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2657DF56FF; Tue, 3 Oct 2017 21:33:56 +0000 (UTC) From: stevengill To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-cli pull request #287: CB-13303 : added noprod/production as an opti... Content-Type: text/plain Message-Id: <20171003213356.2657DF56FF@git1-us-west.apache.org> Date: Tue, 3 Oct 2017 21:33:56 +0000 (UTC) archived-at: Tue, 03 Oct 2017 21:33:58 -0000 Github user stevengill commented on a diff in the pull request: https://github.com/apache/cordova-cli/pull/287#discussion_r142529980 --- Diff: src/cli.js --- @@ -465,6 +473,14 @@ function cli (inputArgs) { // User explicitly did not pass in searchpath args.searchpath = conf.get('searchpath'); } + if (args.production === undefined) { + // User explicitly did not pass in noprod + args.production = conf.get('production'); + } + if (args.noprod === undefined) { --- End diff -- lets not offer `noprod` in config. Just `args.production`. We only need noprod like you have in line 454. Used to figure out of args.production is true or false. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org