Skip to content

Commit

Permalink
feat: alias --simulator to --emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Jul 10, 2022
1 parent bb3a696 commit e9d9d5a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/options.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as helpers from "./common/helpers";
import * as yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import * as yargs from "yargs";
import { hideBin } from "yargs/helpers";
import * as _ from "lodash";
import {
IDictionary,
Expand Down Expand Up @@ -191,6 +191,7 @@ export class Options {
file: { type: OptionType.String, hasSensitiveValue: true },
force: { type: OptionType.Boolean, alias: "f", hasSensitiveValue: false },
emulator: { type: OptionType.Boolean, hasSensitiveValue: false },
simulator: { type: OptionType.Boolean, hasSensitiveValue: false },
sdk: { type: OptionType.String, hasSensitiveValue: false },
template: { type: OptionType.String, hasSensitiveValue: true },
certificate: { type: OptionType.String, hasSensitiveValue: true },
Expand Down Expand Up @@ -402,6 +403,11 @@ export class Options {
this.argv.js = true;
}

// alias --simulator to --emulator
if (this.argv.simulator) {
this.argv.emulator = this.argv.simulator;
}

this.argv.bundle = "webpack";

this.adjustDashedOptions();
Expand Down

0 comments on commit e9d9d5a

Please sign in to comment.