@@ -4,7 +4,7 @@ import { cac } from 'cac'
44import { VERSION as rolldownVersion } from 'rolldown'
55import { x } from 'tinyexec'
66import pkg from '../package.json' with { type : 'json' }
7- import { enableDebugLog } from './features/debug.ts'
7+ import { enableDebug } from './features/debug.ts'
88import { globalLogger } from './utils/logger.ts'
99import type { UserConfig } from './config.ts'
1010
3030 . option ( '--external <module>' , 'Mark dependencies as external' )
3131 . option ( '--minify' , 'Minify output' )
3232 . option ( '--devtools' , 'Enable devtools integration' )
33- . option ( '--debug-logs [feat]' , 'Show debug logs' )
33+ . option ( '--debug [feat]' , 'Show debug logs' )
3434 . option ( '--target <target>' , 'Bundle target, e.g "es2015", "esnext"' )
3535 . option ( '-l, --logLevel <level>' , 'Set log level: info, warn, error, silent' )
3636 . option ( '--fail-on-warn' , 'Fail on warnings' , { default : true } )
128128export async function runCLI ( ) : Promise < void > {
129129 cli . parse ( process . argv , { run : false } )
130130
131- enableDebugLog ( cli . options )
131+ enableDebug ( cli . options )
132132
133133 try {
134134 await cli . runMatchedCommand ( )
0 commit comments