fix(cli): add help text to debug command and subcommands (#7328)

Signed-off-by: assagman <ahmetsercansagman@gmail.com>
This commit is contained in:
Sercan Sagman
2026-01-08 18:42:12 +03:00
committed by GitHub
parent 61aeb2a2a7
commit adae0d1853
11 changed files with 29 additions and 4 deletions

View File

@@ -101,9 +101,9 @@ const cli = yargs(hideBin(process.argv))
.command(SessionCommand)
.fail((msg) => {
if (
msg.startsWith("Unknown argument") ||
msg.startsWith("Not enough non-option arguments") ||
msg.startsWith("Invalid values:")
msg?.startsWith("Unknown argument") ||
msg?.startsWith("Not enough non-option arguments") ||
msg?.startsWith("Invalid values:")
) {
cli.showHelp("log")
}