Skip to content

Commit

Permalink
feat: pass allowMissing to ythe python plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Nov 12, 2019
1 parent 9076975 commit 52b5b48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion help/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ CocoaPods options:
Python options:
--command=<string> Python interpreter to use. Default: "python", set to
"python2" or "python3" to use a specific version.
--allow-missing=<true|false> Allow skipping packages that are not found
--skip-unresolved=<true|false> Allow skipping packages that are not found
in the environment.

Docker options:
Expand Down
9 changes: 9 additions & 0 deletions src/cli/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export function args(rawArgv: string[]): Args {
'all-sub-projects',
'sub-project',
'gradle-sub-project',
'skip-unresolved',
]) {
if (argv[dashedArg]) {
const camelCased = dashToCamelCase(dashedArg);
Expand All @@ -185,6 +186,14 @@ export function args(rawArgv: string[]): Args {
}
}

if (argv.skipUnresolved !== undefined) {
if (argv.skipUnresolved === 'false') {
argv.allowMissing = false;
} else {
argv.allowMissing = true;
}
}

if (argv.strictOutOfSync !== undefined) {
if (argv.strictOutOfSync === 'false') {
argv.strictOutOfSync = false;
Expand Down

0 comments on commit 52b5b48

Please sign in to comment.