10000 feat: alias --simulator to --emulator · NativeScript/nativescript-cli@e9d9d5a · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div class="prc-PageLayout-PageLayoutWrapper-s2ao4" data-width="full">

Commit e9d9d5a

Browse files
committed
feat: alias --simulator to --emulator
1 parent bb3a696 commit e9d9d5a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/options.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as helpers from "./common/helpers";
2-
import * as yargs from 'yargs';
3-
import { hideBin } from 'yargs/helpers';
2+
import * as yargs from "yargs";
3+
import { hideBin } from "yargs/helpers";
44
import * as _ from "lodash";
55
import {
66
IDictionary,
@@ -191,6 +191,7 @@ export class Options {
191191
file: { type: OptionType.String, hasSensitiveValue: true },
192192
force: { type: OptionType.Boolean, alias: "f", hasSensitiveValue: false },
193193
emulator: { type: OptionType.Boolean, hasSensitiveValue: false },
194+
simulator: { type: OptionType.Boolean, hasSensitiveValue: false },
194195
sdk: { type: OptionType.String, hasSensitiveValue: false },
195196
template: { type: OptionType.String, hasSensitiveValue: true },
196197
certificate: { type: OptionType.String, hasSensitiveValue: true },
@@ -402,6 +403,11 @@ export class Options {
402403
this.argv.js = true;
403404
}
404405

406+
// alias --simulator to --emulator
407+
if (this.argv.simulator) {
408+
this.argv.emulator = this.argv.simulator;
409+
}
410+
405411
this.argv.bundle = "webpack";
406412

407413
this.adjustDashedOptions();

0 commit comments

Comments
 (0)
0