Skip to content

Commit

Permalink
Merge pull request #4061 from arturcic/main
Browse files Browse the repository at this point in the history
#4060 - removed the `init` from the help
  • Loading branch information
arturcic committed Jun 10, 2024
2 parents 51672d7 + a6b7e30 commit 53ed377
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
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

0 comments on commit 53ed377

Please sign in to comment.