From 5a2371b7cc0c76f5e95d43921c1e8cc8081bf14e Mon Sep 17 00:00:00 2001 From: itsgreyum <128191779+knoxgraeme@users.noreply.github.com> Date: Sat, 26 Apr 2025 10:26:08 -0700 Subject: [PATCH] Fix --tasks to --num-tasks in ui (#328) --- .changeset/violet-papayas-see.md | 5 +++++ scripts/modules/ui.js | 2 +- scripts/test-claude.js | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/violet-papayas-see.md diff --git a/.changeset/violet-papayas-see.md b/.changeset/violet-papayas-see.md new file mode 100644 index 00000000..9646e533 --- /dev/null +++ b/.changeset/violet-papayas-see.md @@ -0,0 +1,5 @@ +--- +'task-master-ai': patch +--- + +Fix --task to --num-tasks in ui + related tests - issue #324 diff --git a/scripts/modules/ui.js b/scripts/modules/ui.js index cca71055..4d13b71e 100644 --- a/scripts/modules/ui.js +++ b/scripts/modules/ui.js @@ -393,7 +393,7 @@ function displayHelp() { commands: [ { name: 'parse-prd', - args: '--input= [--tasks=10]', + args: '--input= [--num-tasks=10]', desc: 'Generate tasks from a PRD document' }, { diff --git a/scripts/test-claude.js b/scripts/test-claude.js index 7d92a890..de29f58e 100755 --- a/scripts/test-claude.js +++ b/scripts/test-claude.js @@ -158,7 +158,7 @@ async function runTests() { try { const smallResult = execSync( - `node ${path.join(__dirname, 'dev.js')} parse-prd --input=${smallPRDPath} --tasks=5`, + `node ${path.join(__dirname, 'dev.js')} parse-prd --input=${smallPRDPath} --num-tasks=5`, { stdio: 'inherit' } @@ -179,7 +179,7 @@ async function runTests() { try { const mediumResult = execSync( - `node ${path.join(__dirname, 'dev.js')} parse-prd --input=${mediumPRDPath} --tasks=15`, + `node ${path.join(__dirname, 'dev.js')} parse-prd --input=${mediumPRDPath} --num-tasks=15`, { stdio: 'inherit' } @@ -200,7 +200,7 @@ async function runTests() { try { const largeResult = execSync( - `node ${path.join(__dirname, 'dev.js')} parse-prd --input=${largePRDPath} --tasks=25`, + `node ${path.join(__dirname, 'dev.js')} parse-prd --input=${largePRDPath} --num-tasks=25`, { stdio: 'inherit' }