make just admin exit cleanly

This commit is contained in:
Devin Zuczek
2026-07-16 12:28:46 -04:00
parent f02a75aed4
commit 710031b2a3
+3
View File
@@ -263,6 +263,9 @@ const lookup = new Command('lookup')
export const adminCmd = new Command('admin')
.description('Operator tools for accounts on the shared recflare D1 database')
// Bare `admin` (no subcommand) prints help and exits cleanly, rather than
// commander's default "missing command" error (exit 1).
.action((_opts, command: Command) => command.outputHelp())
.addCommand(setPassword)
.addCommand(clearPassword)
.addCommand(grantDeveloper)