fix: change MaximumNArgs from 2 to 1 in run view.go

This commit is contained in:
Wing-Kam Wong 2023-03-28 21:16:04 +08:00
parent 0fa168b80b
commit cc554135e8

View file

@ -94,7 +94,7 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
cmd := &cobra.Command{
Use: "view [<run-id>]",
Short: "View a summary of a workflow run",
Args: cobra.MaximumNArgs(2),
Args: cobra.MaximumNArgs(1),
Example: heredoc.Doc(`
# Interactively select a run to view, optionally selecting a single job
$ gh run view