@@ -41,7 +41,7 @@ func NewCmdRerun(f *cmdutil.Factory, runF func(*RerunOptions) error) *cobra.Comm
4141
4242 if len (args ) == 0 && opts .JobID == "" {
4343 if ! opts .IO .CanPrompt () {
44- return cmdutil .FlagErrorf ("run or job ID required when not running interactively" )
44+ return cmdutil .FlagErrorf ("`< run-id>` or `-- job` required when not running interactively" )
4545 } else {
4646 opts .Prompt = true
4747 }
@@ -50,7 +50,7 @@ func NewCmdRerun(f *cmdutil.Factory, runF func(*RerunOptions) error) *cobra.Comm
5050 }
5151
5252 if opts .RunID != "" && opts .JobID != "" {
53- return cmdutil .FlagErrorf ("specify only one of <run-id> or <job-id> " )
53+ return cmdutil .FlagErrorf ("specify only one of ` <run-id>` or `--job` " )
5454 }
5555
5656 if runF != nil {
@@ -60,7 +60,7 @@ func NewCmdRerun(f *cmdutil.Factory, runF func(*RerunOptions) error) *cobra.Comm
6060 },
6161 }
6262
63- cmd .Flags ().BoolVar (& opts .OnlyFailed , "failed" , false , "Rerun only failed jobs" )
63+ cmd .Flags ().BoolVar (& opts .OnlyFailed , "failed" , false , "Rerun only failed jobs, including dependencies " )
6464 cmd .Flags ().StringVarP (& opts .JobID , "job" , "j" , "" , "Rerun a specific job from a run, including dependencies" )
6565
6666 return cmd
@@ -107,7 +107,7 @@ func runRerun(opts *RerunOptions) error {
107107 return fmt .Errorf ("failed to get runs: %w" , err )
108108 }
109109 if len (runs ) == 0 {
110- return errors .New ("no recent runs have failed; please specify a specific run ID " )
110+ return errors .New ("no recent runs have failed; please specify a specific `< run-id>` " )
111111 }
112112 runID , err = shared .PromptForRun (cs , runs )
113113 if err != nil {
0 commit comments