Skip to content

Commit

Permalink
Add aliases for subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Jujumba committed Dec 6, 2024
1 parent 2d7a467 commit 2017cab
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,28 @@ enum Command {
#[command(
help_template(LONG_ABOUT_TEMPLATE),
before_help(BUILD_BEFORE_HELP),
after_help(BUILD_AFTER_HELP)
after_help(BUILD_AFTER_HELP),
visible_alias("b")
)]
/// Build fuzz targets
Build(options::Build),

#[command(help_template(LONG_ABOUT_TEMPLATE))]
#[command(help_template(LONG_ABOUT_TEMPLATE), visible_alias("c"))]
/// Type-check the fuzz targets
Check(options::Check),

/// Print the `std::fmt::Debug` output for an input
Fmt(options::Fmt),

#[command(visible_alias("ls"))]
/// List all the existing fuzz targets
List(options::List),

#[command(
help_template(LONG_ABOUT_TEMPLATE),
before_help(RUN_BEFORE_HELP),
after_help(RUN_AFTER_HELP)
after_help(RUN_AFTER_HELP),
visible_alias("r")
)]
/// Run a fuzz target
Run(options::Run),
Expand All @@ -141,6 +144,7 @@ enum Command {
/// Minify a test case
Tmin(options::Tmin),

#[command(visible_alias("cov"))]
/// Run program on the generated corpus and generate coverage information
Coverage(options::Coverage),
}
Expand Down

0 comments on commit 2017cab

Please sign in to comment.