mirror of
https://github.com/appium/appium.git
synced 2026-10-29 04:36:39 +08:00
Resolves #17250 This change passes any extra unknown arguments to extension scripts _if and only if_ `appium <extension> <name> run` is executed. In all other cases, unknown arguments result in an error and the `appium` CLI will abort as before. Example: ```bash appium driver fake run fake-success --foo --bar` ``` In the `fake-success` script of the `fake` driver, `process.argv.slice(2)` will be `['--foo', '--bar']`. Extra arguments can appear anywhere after the `appium` executable in the command and do not need to appear after the script name. - In addition, added some missing arguments for extension subcommands to the types (`json`, `suppressOutput`). Extra arguments are stored in property `extraArgs`. - Fixed a type problem surfaced by the previous item - Changed help text for the `run` subcommand to hopefully read more clearly - Reorganized E2E tests for the `run` subcommand - Slightly changed error output when unknown argument is provided (given that we now need to DIY this)