Skip to content

Commit 6185593

Browse files
RyanLee-Devclaude
andcommitted
fix: minimax with no args shows help then quota panel
Show help text first, then quota output below. Logged out: help + login hint. Logged in: help + quota HUD. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b77ba3c commit 6185593

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ async function main() {
2525
process.exit(0);
2626
}
2727

28-
// No command: show quota if logged in, else guide to login
28+
// No command: help + quota (if logged in) or login guide
2929
if (commandPath.length === 0) {
30+
registry.printHelp([], process.stderr);
31+
3032
const { command: quotaCmd } = registry.resolve(['quota', 'show']);
3133
const flags = parseFlags(argv, [...GLOBAL_OPTIONS, ...(quotaCmd.options ?? [])]);
3234
const config = loadConfig(flags);
@@ -37,7 +39,7 @@ async function main() {
3739
if (hasKey || hasOAuth) {
3840
await quotaCmd.execute(config, flags);
3941
} else {
40-
process.stderr.write('\n Not logged in.\n\n');
42+
process.stderr.write(' Not logged in.\n');
4143
process.stderr.write(' minimax auth login --api-key sk-xxxxx\n\n');
4244
}
4345
process.exit(0);

0 commit comments

Comments
 (0)