don't allow args
This commit is contained in:
@@ -80,6 +80,7 @@ var scheduleCmd = &cobra.Command{
|
|||||||
Use: "schedule",
|
Use: "schedule",
|
||||||
Short: "Retrieve daily schedules",
|
Short: "Retrieve daily schedules",
|
||||||
Long: `Retrieve a day's schedule for the whole league or a specific team.`,
|
Long: `Retrieve a day's schedule for the whole league or a specific team.`,
|
||||||
|
Args: cobra.NoArgs,
|
||||||
Run: schedule,
|
Run: schedule,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ var subscribeCmd = &cobra.Command{
|
|||||||
|
|
||||||
Establish a websocket connection with ws.statsapi.mlb.com and output JSON with
|
Establish a websocket connection with ws.statsapi.mlb.com and output JSON with
|
||||||
live updates of a game.`,
|
live updates of a game.`,
|
||||||
Run: subscribe,
|
Args: cobra.NoArgs,
|
||||||
|
Run: subscribe,
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user