@@ -86,7 +86,7 @@ _{bin_name_underscore}_commands() {{
86
86
)
87
87
_describe -t commands '{bin_name} commands' commands \" $@\"
88
88
}}" ,
89
- bin_name_underscore = p. meta. bin_name. as_ref( ) . unwrap( ) . replace( " " , "_ " ) ,
89
+ bin_name_underscore = p. meta. bin_name. as_ref( ) . unwrap( ) . replace( " " , "__ " ) ,
90
90
bin_name = p. meta. bin_name. as_ref( ) . unwrap( ) ,
91
91
subcommands_and_args = subcommands_and_args_of( p) ) ] ;
92
92
@@ -104,7 +104,7 @@ _{bin_name_underscore}_commands() {{
104
104
)
105
105
_describe -t commands '{bin_name} commands' commands \" $@\"
106
106
}}" ,
107
- bin_name_underscore = bin_name. replace( " " , "_ " ) ,
107
+ bin_name_underscore = bin_name. replace( " " , "__ " ) ,
108
108
bin_name = bin_name,
109
109
subcommands_and_args = subcommands_and_args_of( parser_of( p, bin_name) ) ) ) ;
110
110
}
@@ -265,7 +265,7 @@ fn get_args_of(p: &Parser) -> String {
265
265
let flags = write_flags_of ( p) ;
266
266
let sc_or_a = if p. has_subcommands ( ) || p. has_positionals ( ) {
267
267
format ! ( "\" 1:: :_{name}_commands\" \\ " ,
268
- name = p. meta. bin_name. as_ref( ) . unwrap( ) . replace( " " , "_ " ) )
268
+ name = p. meta. bin_name. as_ref( ) . unwrap( ) . replace( " " , "__ " ) )
269
269
} else {
270
270
String :: new ( )
271
271
} ;
0 commit comments