diff --git a/cmd/skillshare/status.go b/cmd/skillshare/status.go index 0e7f545c2..3a84b5f49 100644 --- a/cmd/skillshare/status.go +++ b/cmd/skillshare/status.go @@ -81,6 +81,12 @@ func cmdStatus(args []string) error { if jsonOutput { return fmt.Errorf("--json is not yet supported in project mode") } + // Reject unexpected positional arguments in project mode + for _, arg := range rest { + if arg != "--json" { + return fmt.Errorf("unexpected arguments: %v", rest) + } + } return cmdStatusProject(cwd) }