From 1a3c83df2c3bbb7782c8991c09e7a63241b6c866 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 00:40:22 +0000 Subject: [PATCH] fix: reject unknown subcommands on auth command with exit non-zero Add cobra.NoArgs to authCmd so positional args like 'refresh' are rejected before RunE, producing an error and non-zero exit instead of silently printing help. Fixes #31. Co-authored-by: Darrell --- cmd/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/auth.go b/cmd/auth.go index cdb3294..68586e6 100644 --- a/cmd/auth.go +++ b/cmd/auth.go @@ -14,6 +14,7 @@ import ( var authCmd = &cobra.Command{ Use: "auth", Short: "Authentication commands", + Args: cobra.NoArgs, SilenceUsage: true, RunE: func(cmd *cobra.Command, args []string) error { cmd.SetOut(cmd.ErrOrStderr())