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

This commit is contained in:
itsgreyum
2025-04-26 10:26:08 -07:00
committed by GitHub
parent ce51b0d3ef
commit 5a2371b7cc
3 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
'task-master-ai': patch
---
Fix --task to --num-tasks in ui + related tests - issue #324

View File

@@ -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'
},
{

View File

@@ -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'
}