We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e250b63 commit 77b7da5Copy full SHA for 77b7da5
2 files changed
packages/info/src/index.ts
@@ -1,6 +1,6 @@
1
import envinfo from 'envinfo';
2
import logger from 'webpack-cli/lib/utils/logger';
3
-import options from './options';
+import { commands } from 'webpack-cli/lib/utils/cli-flags';
4
import WebpackCLI from 'webpack-cli';
5
6
interface Information {
@@ -32,7 +32,8 @@ const DEFAULT_DETAILS: Information = {
32
33
export default async function info(...args): Promise<string[]> {
34
const cli = new WebpackCLI();
35
- const parsedArgs = cli.argParser(options, args, true);
+ const { flags: infoFlags } = commands.find((cmd) => cmd.name === 'info');
36
+ const parsedArgs = cli.argParser(infoFlags, args, true);
37
const infoArgs = parsedArgs.opts;
38
const envinfoConfig = {};
39
packages/info/src/options.ts
0 commit comments