|
1 | 1 | 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"; |
4 | 4 | import * as _ from "lodash";
|
5 | 5 | import {
|
6 | 6 | IDictionary,
|
@@ -191,6 +191,7 @@ export class Options {
|
191 | 191 | file: { type: OptionType.String, hasSensitiveValue: true },
|
192 | 192 | force: { type: OptionType.Boolean, alias: "f", hasSensitiveValue: false },
|
193 | 193 | emulator: { type: OptionType.Boolean, hasSensitiveValue: false },
|
| 194 | + simulator: { type: OptionType.Boolean, hasSensitiveValue: false }, |
194 | 195 | sdk: { type: OptionType.String, hasSensitiveValue: false },
|
195 | 196 | template: { type: OptionType.String, hasSensitiveValue: true },
|
196 | 197 | certificate: { type: OptionType.String, hasSensitiveValue: true },
|
@@ -402,6 +403,11 @@ export class Options {
|
402 | 403 | this.argv.js = true;
|
403 | 404 | }
|
404 | 405 |
|
| 406 | + // alias --simulator to --emulator |
| 407 | + if (this.argv.simulator) { |
| 408 | + this.argv.emulator = this.argv.simulator; |
| 409 | + } |
| 410 | + |
405 | 411 | this.argv.bundle = "webpack";
|
406 | 412 |
|
407 | 413 | this.adjustDashedOptions();
|
|
0 commit comments