From 712a0789d6d584adf5dbb27732c783cd240014b2 Mon Sep 17 00:00:00 2001 From: Ed Sumerfield Date: Mon, 26 Jan 2026 17:58:56 -0500 Subject: [PATCH] Add --no-banner argument to clean up the output (#1600) Co-authored-by: Ed Sumerfield --- .changeset/fair-heads-report.md | 5 +++++ scripts/modules/commands.js | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/fair-heads-report.md diff --git a/.changeset/fair-heads-report.md b/.changeset/fair-heads-report.md new file mode 100644 index 00000000..f25ed1ad --- /dev/null +++ b/.changeset/fair-heads-report.md @@ -0,0 +1,5 @@ +--- +"task-master-ai": patch +--- + +Add --no-banner to suppress the startup banner. diff --git a/scripts/modules/commands.js b/scripts/modules/commands.js index 3474d0a7..e1851ca5 100644 --- a/scripts/modules/commands.js +++ b/scripts/modules/commands.js @@ -5405,7 +5405,8 @@ async function runCLI(argv = process.argv) { // Display banner if not in a pipe (except for init/start/repl commands which have their own) const isInitCommand = argv.includes('init'); const isREPLCommand = argv.includes('tui') || argv.includes('repl'); - if (process.stdout.isTTY && !isInitCommand && !isREPLCommand) { + const noBanner = argv.includes('--no-banner'); + if (process.stdout.isTTY && !isInitCommand && !isREPLCommand && !noBanner) { displayBanner(); } @@ -5442,7 +5443,9 @@ async function runCLI(argv = process.argv) { // NOTE: getConfig() might be called during setupCLI->registerCommands if commands need config // This means the ConfigurationError might be thrown here if configuration file is missing. const programInstance = setupCLI(); - await programInstance.parseAsync(argv); + // Filter out --no-banner since it's handled above and not a Commander option + const filteredArgv = argv.filter((arg) => arg !== '--no-banner'); + await programInstance.parseAsync(filteredArgv); // Check if migration has occurred and show FYI notice once try {