Skip to content

Fix: Improve 'parse-prd' command and CLI help consistency#15

Merged
eyaltoledano merged 3 commits intomainfrom
complexity-fix
Mar 24, 2025
Merged

Fix: Improve 'parse-prd' command and CLI help consistency#15
eyaltoledano merged 3 commits intomainfrom
complexity-fix

Conversation

@eyaltoledano
Copy link
Owner

@eyaltoledano eyaltoledano commented Mar 24, 2025

This commit improves the 'parse-prd' command and ensures consistency in CLI help messages across different entry points.

Changes:

  • Improved 'parse-prd' command:
    • Made the file argument optional for the parse-prd command in both commands.js and bin/task-master.js.
    • Added a helpful message box with usage instructions when parse-prd is called without a PRD file, instead of showing a generic error.
  • Consistent CLI Help:
    • Standardized the help display in bin/task-master.js to directly use the displayHelp() and displayBanner() functions from ui.js, ensuring consistent help output with scripts/dev.js.
    • Added code to commands.js to display the banner and help message when task-master or dev.js is run without any arguments.
  • Description Consistency:
    • Updated the description of the show command in bin/task-master.js to precisely match the description in commands.js.
  • Expand with Research:
    • Adjusted the expand command to take in a --research flag which now hits the Perplexity API to figure out the complexity of each task and determine the correct amount of sub tasks needed..

Also closes issues #12 #13

These changes enhance the user experience by providing better guidance for the parse-prd command and ensuring consistent help information throughout the CLI, regardless of the entry point used.

…, colored deps status, help output, expand cmd clarity, init instructions, version bump to 0.9.18
…ll cases). Fixes an issue preventing analyzeTaskComplexity to work as designed. Fixes an issue that prevented parse-prd from working. Stubs in the test for analyzeTaskComplexity to be done later.
@eyaltoledano eyaltoledano self-assigned this Mar 24, 2025
…tion in the complexity-report. Makes the table fill the width of the terminal as well.
@eyaltoledano eyaltoledano merged commit f7c7ca1 into main Mar 24, 2025
@eyaltoledano eyaltoledano deleted the complexity-fix branch March 26, 2025 16:08
@eyaltoledano eyaltoledano restored the complexity-fix branch March 26, 2025 16:08
@eyaltoledano eyaltoledano deleted the complexity-fix branch March 26, 2025 16:08
ProdByBuddha pushed a commit to ProdByBuddha/claude-task-master that referenced this pull request Apr 9, 2025
Fix: Improve 'parse-prd' command and CLI help consistency
Fixed an issue with analyzeTaskComplexity implementation. 
Stubs 3 tests for analyzeTaskComplexity, to be done later
Fixes issues with table displays
Fixes an issue which incorrectly used an outdated Perplexity model by default
Fixes the interpolation of the suggested task expansion prompt in the complexity-report command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant