diff --git a/docs/user-guide/command-line-interface.md b/docs/user-guide/command-line-interface.md index 64a85e254207..8938bc91f246 100644 --- a/docs/user-guide/command-line-interface.md +++ b/docs/user-guide/command-line-interface.md @@ -78,7 +78,7 @@ Caching: Miscellaneous: --init Run config initialization wizard - default: false - --info Output execution environment information - default: false + --env-info Output execution environment information - default: false --debug Output debugging information -h, --help Show help -v, --version Output the version number @@ -447,7 +447,7 @@ This option will start config initialization wizard. It's designed to help new u The resulting configuration file will be created in the current directory. -#### `--info` +#### `--env-info` This option outputs information about the execution environment, including the version of Node, npm, and local and global installations of ESLint. The ESLint team may ask for this information to help solve bugs. diff --git a/lib/cli.js b/lib/cli.js index 255ff1b2ace3..18a917cf0b0a 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -164,7 +164,7 @@ const cli = { if (currentOptions.version) { log.info(RuntimeInfo.version()); - } else if (currentOptions.info) { + } else if (currentOptions.envInfo) { try { log.info(RuntimeInfo.environment()); return 0; diff --git a/lib/options.js b/lib/options.js index 227093e4b130..83bf9afc22c9 100644 --- a/lib/options.js +++ b/lib/options.js @@ -225,7 +225,7 @@ module.exports = optionator({ description: "Run config initialization wizard" }, { - option: "info", + option: "env-info", type: "Boolean", default: "false", description: "Output execution environment information"