fix: remove default value from complexity report option to enable tag-specific detection (#1049)

Removes the default empty array value from the complexity report option to properly detect when tags are explicitly provided vs when no tags are provided, fixing the expand --all command behavior with tagged tasks.

Co-authored-by: Ben Vargas <ben@example.com>
This commit is contained in:
Ben Vargas
2025-07-26 03:26:45 -10:00
committed by GitHub
parent 29e67fafa4
commit 45a14c323d
2 changed files with 9 additions and 2 deletions

View File

@@ -1564,8 +1564,8 @@ function registerCommands(programInstance) {
) // Allow file override
.option(
'-cr, --complexity-report <file>',
'Path to the report file',
COMPLEXITY_REPORT_FILE
'Path to the complexity report file (use this to specify the complexity report, not --file)'
// Removed default value to allow tag-specific auto-detection
)
.option('--tag <tag>', 'Specify tag context for task operations')
.action(async (options) => {