Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/input/docs/usage/cli/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/GitVersion.App/ArgumentParserExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down