docs(appium): --plugins is now --use-plugins
MODIFY
docs/en/advanced-concepts/migrating-to-appium-2.0.md
docs/en/advanced-concepts/migrating-to-appium-2.0.md
@@ -125,7 +125,7 @@ One of the design goals for Appium 2.0 is to migrate non-core features into spec
If you use these image-related methods, to continue accessing them you will need to do two things.
1. Install the plugin: `appium plugin install images`
-2. Ensure you start the Appium server with access to run the plugin by including it in the list of plugins designated on the command line, e.g., `appium --plugins=images`
+2. Ensure you start the Appium server with access to run the plugin by including it in the list of plugins designated on the command line, e.g., `appium --use-plugins=images`
Image-related commands will also be removed on the client side of things, which means you will need to follow the instructions on the plugin README for installing client-side plugins to access these features.

MODIFY
packages/appium/lib/main.js
packages/appium/lib/main.js
@@ -94,9 +94,9 @@ function logServerPort (address, port) {
/**
* Find any plugin name which has been installed, and which has been requested for activation by
- * using the --plugins flag, and turn each one into its class, so we can send them as objects to
- * the server init. We also want to send/assign them to the umbrella driver so it can use them to
- * wrap command execution
+ * using the --use-plugins flag, and turn each one into its class, so we can send them as objects
+ * to the server init. We also want to send/assign them to the umbrella driver so it can use them
+ * to wrap command execution
*
* @param {Object} args - argparser parsed dict
* @param {import('./plugin-config').default} pluginConfig - a plugin extension config

MODIFY
packages/appium/lib/plugin-config.js
packages/appium/lib/plugin-config.js
@@ -57,7 +57,7 @@ export default class PluginConfig extends ExtensionConfig {
}
if (_.isEmpty(activeNames)) {
- log.info('No plugins activated. Use the --plugins flag with names of plugins to activate');
+ log.info('No plugins activated. Use the --use-plugins flag with names of plugins to activate');
}
}
}

MODIFY
packages/appium/test/fixtures/args-for-schema.js
packages/appium/test/fixtures/args-for-schema.js
@@ -185,9 +185,9 @@ export default [
},
],
[
- ['--plugins'],
+ ['--use-plugins'],
{
- dest: 'plugins',
+ dest: 'usePlugins',
help: 'A list of plugins to activate. To activate all plugins, use the single string "all". If a string, can otherwise be valid JSON.',
required: false,
},

docs(appium): --plugins is now --use-plugins