Skip to content

Commit

Permalink
feat(help): add "--no-banner" option for help command
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 26, 2024
1 parent 38a39d6 commit 0f53c97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ export function showBanner(s?: string) {
export class CustomHelp extends Help {
async showHelp(args: string[]) {
// console.log(uText('AI Agent', 'green'));
showBanner();
const i = args.indexOf('--no-banner')
if (i === -1) {
showBanner()
} else {
args.splice(i, 1)
}

super.showHelp(args);
// console.dir('This will be displayed in multi-command CLIs', args);
}
Expand Down

0 comments on commit 0f53c97

Please # to comment.