From a6b7e30851865f8044cc8474cd3d52fa6f1dd660 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Mon, 10 Jun 2024 10:28:37 +0200 Subject: [PATCH] #4060 - removed the `init` from the help --- docs/input/docs/usage/cli/arguments.md | 3 --- src/GitVersion.App/ArgumentParserExtensions.cs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/input/docs/usage/cli/arguments.md b/docs/input/docs/usage/cli/arguments.md index 2013651a22..c47e115ba7 100644 --- a/docs/input/docs/usage/cli/arguments.md +++ b/docs/input/docs/usage/cli/arguments.md @@ -23,7 +23,6 @@ GitVersion [path] path The directory containing .git. If not defined current directory is used. (Must be first argument) - init Configuration utility for gitversion /version Displays the version of GitVersion /diag Runs GitVersion with additional diagnostic information (requires git.exe to be installed) @@ -94,8 +93,6 @@ GitVersion [path] Use this switch to override /nofetch Disables 'git fetch' during version calculation. Might cause GitVersion to not calculate your version as expected. - -gitversion init Configuration utility for gitversion ``` ## Override config diff --git a/src/GitVersion.App/ArgumentParserExtensions.cs b/src/GitVersion.App/ArgumentParserExtensions.cs index ecc930d5f0..8370c70d28 100644 --- a/src/GitVersion.App/ArgumentParserExtensions.cs +++ b/src/GitVersion.App/ArgumentParserExtensions.cs @@ -65,7 +65,7 @@ public static bool IsSwitch(this string? value, string switchName) public static bool ArgumentRequiresValue(this string argument, int argumentIndex) { - var booleanArguments = new[] { "init", "updateassemblyinfo", "ensureassemblyinfo", "nofetch", "nonormalize", "nocache" }; + var booleanArguments = new[] { "updateassemblyinfo", "ensureassemblyinfo", "nofetch", "nonormalize", "nocache" }; var argumentMightRequireValue = !booleanArguments.Contains(argument[1..], StringComparer.OrdinalIgnoreCase);