summaryrefslogtreecommitdiff
path: root/utils/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-19 16:04:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-19 16:04:38 +0800
commitb52ca311e71c9bf4b3437131a9de917897b03736 (patch)
treec6beef1aa590ac98b41da5bd2f3caf177647377f /utils/src
parent021d92a48000e8e04548ef45bad64c753ad0d1b4 (diff)
Add environment variable documentation for CLI
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/env/helpdoc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/src/env/helpdoc.rs b/utils/src/env/helpdoc.rs
index d9bce2c..ab2570e 100644
--- a/utils/src/env/helpdoc.rs
+++ b/utils/src/env/helpdoc.rs
@@ -1,6 +1,6 @@
/// Gets the default help documentation setting based on environment variables.
///
-/// The function checks the JV_HELPDOC environment variable.
+/// The function checks the JV_HELPDOC_VIEWER environment variable.
/// If the variable is set to "1", it returns true (enabled).
/// If the variable is set to any other value, it returns false (disabled).
/// If the variable is not set, it returns true (enabled by default).
@@ -8,7 +8,7 @@
/// # Returns
/// A boolean indicating whether help documentation is enabled
pub fn get_helpdoc_enabled() -> bool {
- match std::env::var("JV_HELPDOC") {
+ match std::env::var("JV_HELPDOC_VIEWER") {
Ok(value) => value == "1",
Err(_) => true,
}