Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

Fix --tasks to --num-tasks in ui (#328)

itsgreyum5a2371b7cc0c
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=<file.txt> [--tasks=10]',
+ args: '--input=<file.txt> [--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'
}