mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Model newer yargs command-line parsing pattern
This commit is contained in:
@@ -74,6 +74,8 @@ private class DefaultModels extends CommandLineArguments::Range {
|
||||
or
|
||||
// `require('commander').opt()` => `{a: ..., b: ...}`
|
||||
this = commander().getMember("opts").getACall()
|
||||
or
|
||||
this = API::moduleImport("yargs/yargs").getReturn().getMember("argv").asSource()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user