From b46ba850026633eba487386df913006c4149b03c Mon Sep 17 00:00:00 2001 From: SphericalKat Date: Mon, 9 Nov 2020 17:25:21 +0530 Subject: [PATCH] cli: add colored output to subcommands Signed-off-by: SphericalKat --- src/cli.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index d935217..c3884cc 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -21,6 +21,7 @@ pub(crate) enum SubCommand { /// recursively find git repos and record their states into a lockfile #[derive(Clap)] +#[clap(setting = AppSettings::ColoredHelp)] pub(crate) struct Freeze { /// directory to search and freeze repos from. pub(crate) directory: String, @@ -28,6 +29,7 @@ pub(crate) struct Freeze { /// takes the given #[derive(Clap)] +#[clap(setting = AppSettings::ColoredHelp)] pub(crate) struct Thaw { /// directory to put cloned repos into. pub(crate) directory: String,