Skip to content

Commit a6b7e30

Browse files
committed
#4060 - removed the init from the help
1 parent 51672d7 commit a6b7e30

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/input/docs/usage/cli/arguments.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ GitVersion [path]
2323

2424
path The directory containing .git. If not defined current
2525
directory is used. (Must be first argument)
26-
init Configuration utility for gitversion
2726
/version Displays the version of GitVersion
2827
/diag Runs GitVersion with additional diagnostic information
2928
(requires git.exe to be installed)
@@ -94,8 +93,6 @@ GitVersion [path]
9493
Use this switch to override
9594
/nofetch Disables 'git fetch' during version calculation. Might cause
9695
GitVersion to not calculate your version as expected.
97-
98-
gitversion init Configuration utility for gitversion
9996
```
10097
10198
## Override config

src/GitVersion.App/ArgumentParserExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static bool IsSwitch(this string? value, string switchName)
6565

6666
public static bool ArgumentRequiresValue(this string argument, int argumentIndex)
6767
{
68-
var booleanArguments = new[] { "init", "updateassemblyinfo", "ensureassemblyinfo", "nofetch", "nonormalize", "nocache" };
68+
var booleanArguments = new[] { "updateassemblyinfo", "ensureassemblyinfo", "nofetch", "nonormalize", "nocache" };
6969

7070
var argumentMightRequireValue = !booleanArguments.Contains(argument[1..], StringComparer.OrdinalIgnoreCase);
7171

0 commit comments

Comments
 (0)