@@ -35,16 +35,18 @@ func NewCmdClone(f *cmdutil.Factory, runF func(*CloneOptions) error) *cobra.Comm
3535 }
3636
3737 cmd := & cobra.Command {
38- Use : "clone <repository> [<directory>] -- [<gitflags>...]" ,
38+ DisableFlagsInUseLine : true ,
39+
40+ Use : "clone <repository> [<directory>] [-- <gitflags>...]" ,
3941 Args : cobra .MinimumNArgs (1 ),
4042 Short : "Clone a repository locally" ,
41- Long : heredoc .Doc (
42- ` Clone a GitHub repository locally.
43+ Long : heredoc .Doc (`
44+ Clone a GitHub repository locally.
4345
4446 If the "OWNER/" portion of the "OWNER/REPO" repository argument is omitted, it
4547 defaults to the name of the authenticating user.
4648
47- To pass 'git clone' flags, separate them with '--'.
49+ Pass additional 'git clone' flags by listing them after '--'.
4850 ` ),
4951 RunE : func (cmd * cobra.Command , args []string ) error {
5052 opts .Repository = args [0 ]
@@ -62,7 +64,7 @@ func NewCmdClone(f *cmdutil.Factory, runF func(*CloneOptions) error) *cobra.Comm
6264 if err == pflag .ErrHelp {
6365 return err
6466 }
65- return & cmdutil.FlagError {Err : fmt .Errorf ("%v \n Separate git clone flags with `--` ." , err )}
67+ return & cmdutil.FlagError {Err : fmt .Errorf ("%w \n Separate git clone flags with '--' ." , err )}
6668 })
6769
6870 return cmd
0 commit comments