From 02ddfbf2b9ad9560de8bd2e2e48174d89c9ff1b7 Mon Sep 17 00:00:00 2001 From: filifa Date: Sat, 20 Jul 2024 12:30:13 -0500 Subject: [PATCH] don't allow args --- cmd/schedule.go | 1 + cmd/subscribe.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/schedule.go b/cmd/schedule.go index f47b174..ac9a161 100644 --- a/cmd/schedule.go +++ b/cmd/schedule.go @@ -80,6 +80,7 @@ var scheduleCmd = &cobra.Command{ Use: "schedule", Short: "Retrieve daily schedules", Long: `Retrieve a day's schedule for the whole league or a specific team.`, + Args: cobra.NoArgs, Run: schedule, } diff --git a/cmd/subscribe.go b/cmd/subscribe.go index 9b02bc3..0f6b3b8 100644 --- a/cmd/subscribe.go +++ b/cmd/subscribe.go @@ -97,7 +97,8 @@ var subscribeCmd = &cobra.Command{ Establish a websocket connection with ws.statsapi.mlb.com and output JSON with live updates of a game.`, - Run: subscribe, + Args: cobra.NoArgs, + Run: subscribe, } func init() {