fix: be more clear in info command

This commit is contained in:
Strix 2023-10-14 22:39:48 +02:00
parent 7c2f637184
commit 3bd9051a67
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -3,6 +3,7 @@ use std::process::exit;
use clap::{Parser, Subcommand}; use clap::{Parser, Subcommand};
use log::{debug, error, info, trace, warn}; use log::{debug, error, info, trace, warn};
use colored::Colorize;
use crate::CONFIG; use crate::CONFIG;
use crate::package::identifier::PackageIdentifier; use crate::package::identifier::PackageIdentifier;
use crate::package::Package; use crate::package::Package;
@ -124,8 +125,8 @@ impl Command {
info!("authors: {}", env!("CARGO_PKG_AUTHORS")); info!("authors: {}", env!("CARGO_PKG_AUTHORS"));
info!(""); info!("");
info!("If you can't seem to figure something out, use debug!"); info!("If you can't seem to figure something out, use environment variable: PKGR_LOG_LEVEL=debug");
trace!("Trace should really only be used by PKGR devs."); trace!("{}", "The trace log level should really only be used by PKGR devs.".red());
} }
} }
#[cfg(debug_assertions)] #[cfg(debug_assertions)]