Skip to content

Commit 87198fe

Browse files
committed
fix: Add builder to default command for TS fix
1 parent 0cebeb5 commit 87198fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ export async function main() { // Add export
841841
cli.command(
842842
'$0', // No explicit [repoPath] here; startServerHandler will use argv.repo or default to '.'
843843
'Start the CodeCompass server (default action). Use "start" command for explicit start with options. If a path is provided without a command, it is assumed to be the repository path for this default action when --repo is not used.',
844-
// No builder function needed if there are no command-specific options/positionals here
844+
(yargsInstance) => yargsInstance, // Add empty builder to help TypeScript infer argv type correctly
845845
async (argv) => {
846846
console.log('[INDEX_TS_DEBUG] Default ($0) command handler INVOKED');
847847
// startServerHandler will use argv.repo or default to '.' if argv.repoPath is not set by yargs due to this command structure

0 commit comments

Comments
 (0)