From 2017caba9ee22e33cf644e73b4fc2ebf90ffb642 Mon Sep 17 00:00:00 2001 From: Jujumba Date: Fri, 6 Dec 2024 21:33:47 +0100 Subject: [PATCH] Add aliases for subcommand --- src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4243d96..300a4e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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), @@ -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), }