Skip to content

Commit

Permalink
Fix broken Android object configuration object
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Sep 20, 2024
1 parent c7e25ad commit b7faabf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/support/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ function validateInput(argv) {
}
}

// hack to keep backward compability to --android
if (argv.android[0] === true) {
set(argv, 'android.enabled', true);
}

if (argv.chrome && argv.chrome.mobileEmulation) {
const m = argv.chrome.mobileEmulation;
if (!(m.deviceName || (m.height && m.width && m.pixelRatio))) {
Expand Down Expand Up @@ -144,7 +139,11 @@ function validateInput(argv) {
}

export function parseCommandLine() {
let yargsInstance = yargs(hideBin(process.argv));
let argvFix = process.argv.map(arg =>
arg === '--android' ? '--android.enabled' : arg
);

let yargsInstance = yargs(hideBin(argvFix));
let validated = yargsInstance
.parserConfiguration({
'camel-case-expansion': false,
Expand Down

0 comments on commit b7faabf

Please sign in to comment.