File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
1
import envinfo from 'envinfo' ;
2
2
import logger from 'webpack-cli/lib/utils/logger' ;
3
- import options from './options ' ;
3
+ import { commands } from 'webpack-cli/lib/utils/cli-flags ' ;
4
4
import WebpackCLI from 'webpack-cli' ;
5
5
6
6
interface Information {
@@ -32,7 +32,8 @@ const DEFAULT_DETAILS: Information = {
32
32
33
33
export default async function info ( ...args ) : Promise < string [ ] > {
34
34
const cli = new WebpackCLI ( ) ;
35
- const parsedArgs = cli . argParser ( options , args , true ) ;
35
+ const { flags : infoFlags } = commands . find ( ( cmd ) => cmd . name === 'info' ) ;
36
+ const parsedArgs = cli . argParser ( infoFlags , args , true ) ;
36
37
const infoArgs = parsedArgs . opts ;
37
38
const envinfoConfig = { } ;
38
39
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments