Skip to content

Commit 64923ed

Browse files
authored
style: clean Subcmd enum code style (#553)
1 parent 453f096 commit 64923ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/args.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub enum SubCmd {
143143
#[command(next_help_heading = &**crate::args::ARG_HELP_HEADING)]
144144
Search(Search),
145145
/// List files in the specified package
146-
#[command(about = fl!("clap-files-help"), help_template = &*HELP_TEMPLATE, help_template = &*HELP_TEMPLATE)]
146+
#[command(about = fl!("clap-files-help"), help_template = &*HELP_TEMPLATE)]
147147
#[command(next_help_heading = &**crate::args::ARG_HELP_HEADING)]
148148
Files(Files),
149149
/// Search for package(s) that provide(s) certain patterns in a path
@@ -212,9 +212,8 @@ pub enum SubCmd {
212212
#[command(hide = true, help_template = &*HELP_TEMPLATE)]
213213
#[command(next_help_heading = &**crate::args::ARG_HELP_HEADING)]
214214
CommandNotFound(CommandNotFound),
215-
#[command(hide = true, help_template = &*HELP_TEMPLATE)]
216-
#[command(next_help_heading = &**crate::args::ARG_HELP_HEADING)]
217215
/// Generate manpages
216+
#[command(hide = true)]
218217
#[command(help_template = &*HELP_TEMPLATE)]
219218
#[command(next_help_heading = &**crate::args::ARG_HELP_HEADING)]
220219
GenerateManpages(GenerateManpages),

0 commit comments

Comments
 (0)