Skip to content

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

fix: improve commander instance in commands.js

Ralph Khreish7ff882bf2336
diff --git a/scripts/modules/commands.js b/scripts/modules/commands.js
index bb515526..d4b46e9f 100644
--- a/scripts/modules/commands.js
+++ b/scripts/modules/commands.js
@@ -3,7 +3,7 @@
* Command-line interface for the Task Master CLI
*/
-import { program } from 'commander';
+import { Command } from 'commander';
import path from 'path';
import chalk from 'chalk';
import boxen from 'boxen';
@@ -5076,7 +5076,7 @@ Examples:
*/
function setupCLI() {
// Create a new program instance
- const programInstance = program
+ const programInstance = new Command()
.name('dev')
.description('AI-driven development task management')
.version(() => {