From 92a75922d56f1d76eff001d0c042274f40cbe78b Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Thu, 6 Jan 2022 16:09:52 +0200 Subject: [PATCH] Ignore arch in help output (#627) --- docs/commands.md | 26 +++++++++++++------------- src/config.rs | 3 ++- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/docs/commands.md b/docs/commands.md index ff5608e..f429d07 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -18,7 +18,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -73,7 +73,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -121,7 +121,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -164,7 +164,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -206,7 +206,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -260,7 +260,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -308,7 +308,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -365,7 +365,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -410,7 +410,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -450,7 +450,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -490,7 +490,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -538,7 +538,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] @@ -589,7 +589,7 @@ FLAGS: OPTIONS: --arch Override the architecture of the installed Node binary. Defaults to arch of fnm binary [env: FNM_ARCH] - [default: x64] + --fnm-dir The root directory of fnm installations [env: FNM_DIR] diff --git a/src/config.rs b/src/config.rs index 9864ae7..e05ddda 100644 --- a/src/config.rs +++ b/src/config.rs @@ -56,7 +56,8 @@ pub struct FnmConfig { env = "FNM_ARCH", default_value, global = true, - hide_env_values = true + hide_env_values = true, + hide_default_value = true )] pub arch: Arch,