UNPKG

1.16 kBJavaScriptView Raw
1"use strict";
2/*
3 * Copyright (c) 2018, salesforce.com, inc.
4 * All rights reserved.
5 * Licensed under the BSD 3-Clause license.
6 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7 */
8Object.defineProperty(exports, "__esModule", { value: true });
9function preprocessCliFlags(process) {
10 process.argv = process.argv.filter(arg => {
11 switch (arg) {
12 case '--dev-debug': {
13 // convert --dev-debug into a set of environment variables
14 process.env.DEBUG = '*';
15 process.env.SFDX_DEBUG = '1';
16 process.env.SFDX_ENV = 'development';
17 process.env.NODE_ENV = 'development';
18 return false;
19 }
20 case '--dev-suspend': {
21 // simply ignore --dev-suspend if provided... filtering args in batch scripts is hard
22 return false;
23 }
24 default: {
25 // retain all other cli args
26 return true;
27 }
28 }
29 });
30}
31exports.preprocessCliFlags = preprocessCliFlags;
32//# sourceMappingURL=flags.js.map
\No newline at end of file