From 7cb9e3c5c6c05dde1666fd4d7f07741c4c1f61a2 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Thu, 1 Aug 2024 11:59:33 +0200 Subject: [PATCH] feat: restyle env var descriptions --- src/env_var_descriptions.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/env_var_descriptions.rs b/src/env_var_descriptions.rs index 7f6c2e9..7d733ff 100644 --- a/src/env_var_descriptions.rs +++ b/src/env_var_descriptions.rs @@ -41,7 +41,7 @@ fn env_var_descriptions() -> Vec<(&'static str, &'static str)> { ), ( "LH_DRIVER", - "Lighthouse driver, this overrides the \"Lighthouse driver option in the profile\"; Valid options are: \"vive\" for the default built-in driver, \"survive\" for Libsurvive, \"steamvr\" for the SteamVR based implementation." + "Lighthouse driver, this overrides the \"Lighthouse driver option in the profile\"; Valid options are:\n\"vive\" for the default built-in driver;\n\"survive\" for Libsurvive;\n\"steamvr\" for the SteamVR based implementation." ), ( "LH_LOG", @@ -53,7 +53,7 @@ fn env_var_descriptions() -> Vec<(&'static str, &'static str)> { ), ( "LH_HANDTRACKING", - "Controls when to enable mercury optical hand tracking. Valid options are: \"0\" (off) to disable hand tracking, \"1\" (auto) to only enable hand tracking if no controllers are found, \"2\" (on) to enable hand tracking even if controllers are found." + "Controls when to enable mercury optical hand tracking. Valid options are:\n\"0\" (off) to disable hand tracking;\n\"1\" (auto) to only enable hand tracking if no controllers are found;\n\"2\" (on) to enable hand tracking even if controllers are found." ), ] } @@ -61,7 +61,7 @@ fn env_var_descriptions() -> Vec<(&'static str, &'static str)> { fn env_var_descriptions_as_paragraph() -> String { ENV_VAR_DESCRIPTIONS .iter() - .map(|(k, v)| format!(" \u{2022} {}: {}", k, v)) + .map(|(k, v)| format!("{}\n{}", k, v)) .collect::>() .join("\n\n") }