From 4ddf1c04ecd578cf9063435e0207509093ed5909 Mon Sep 17 00:00:00 2001 From: Didier Date: Mon, 7 Aug 2023 04:40:18 +0200 Subject: [PATCH] fix: be more clear in info command --- pkgr/src/commands.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgr/src/commands.rs b/pkgr/src/commands.rs index 52e6fb4..1df594b 100644 --- a/pkgr/src/commands.rs +++ b/pkgr/src/commands.rs @@ -3,6 +3,7 @@ use std::process::exit; use clap::{Parser, Subcommand}; use log::{debug, error, info, trace, warn}; +use colored::Colorize; use crate::CONFIG; use crate::package::identifier::PackageIdentifier; use crate::package::Package; @@ -124,8 +125,8 @@ impl Command { info!("authors: {}", env!("CARGO_PKG_AUTHORS")); info!(""); - info!("If you can't seem to figure something out, use debug!"); - trace!("Trace should really only be used by PKGR devs."); + info!("If you can't seem to figure something out, use environment variable: PKGR_LOG_LEVEL=debug"); + trace!("{}", "The trace log level should really only be used by PKGR devs.".red()); } } #[cfg(debug_assertions)]