Skip to content

Commit 8ed221e

Browse files
committed
fix: improve index command help menu formatting
- Move examples from description to addHelpText() so they only appear in Usage: ctxc index [options] [command] Index a data source Options: -h, --help display help for command Commands: github [options] Index a GitHub repository gitlab [options] Index a GitLab project bitbucket [options] Index a Bitbucket repository website [options] Crawl and index a website help [command] display help for command, not in the main menu - Simplify usage line to instead of showing two separate usage patterns Agent-Id: agent-8cab8bce-f29f-48f1-8fc1-86167ff2398b
1 parent 711390a commit 8ed221e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cmd-index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ urlCommand.action(async (url: string, options) => {
273273

274274
// Main index command
275275
export const indexCommand = new Command("index")
276-
.usage("<url> [options]\n ctxc index <source> [options]")
276+
.usage("<url | source> [options]")
277277
.description("Index a data source")
278278
.addHelpText('after', `
279279
Examples:

0 commit comments

Comments
 (0)