Skip to content

Commit 0d59d49

Browse files
lukevmorrisclaude
andcommitted
fix: show help text when no run-id is provided to depot ci status
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a1a2c26 commit 0d59d49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cmd/ci/status.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ func NewCmdStatus() *cobra.Command {
1515
Use: "status <run-id>",
1616
Short: "Look up the status of a CI run [beta]",
1717
Long: "Look up the status of a CI run, including its workflows, jobs, and attempts.\n\nThis command is in beta and subject to change.",
18-
Args: cobra.ExactArgs(1),
1918
RunE: func(cmd *cobra.Command, args []string) error {
19+
if len(args) == 0 {
20+
return cmd.Help()
21+
}
22+
2023
ctx := cmd.Context()
2124
runID := args[0]
2225

0 commit comments

Comments
 (0)