@@ -36,7 +36,7 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co
3636 Long : `Delete a GitHub repository.
3737
3838Deletion requires authorization with the "delete_repo" scope.
39- To authorize, run "gh auth refresh -h github.com - s delete_repo"` ,
39+ To authorize, run "gh auth refresh -s delete_repo"` ,
4040 Args : cmdutil .ExactArgs (1 , "cannot delete: repository argument required" ),
4141 RunE : func (cmd * cobra.Command , args []string ) error {
4242 opts .RepoArg = args [0 ]
@@ -47,7 +47,7 @@ To authorize, run "gh auth refresh -h github.com -s delete_repo"`,
4747 },
4848 }
4949
50- cmd .Flags ().BoolVar (& opts .Confirmed , "yes " , false , "confirm deletion without prompting" )
50+ cmd .Flags ().BoolVarP (& opts .Confirmed , "confirm" , "c " , false , "confirm deletion without prompting" )
5151 return cmd
5252}
5353
@@ -77,7 +77,7 @@ func deleteRun(opts *DeleteOptions) error {
7777
7878 doPrompt := opts .IO .CanPrompt ()
7979 if ! opts .Confirmed && ! doPrompt {
80- return errors .New ("could not prompt: confirmation with prompt or --yes flag required" )
80+ return errors .New ("could not prompt: confirmation with prompt or --confirm flag required" )
8181 }
8282
8383 if ! opts .Confirmed && doPrompt {
0 commit comments