Skip to content

Commit 0b647de

Browse files
committed
Renames switch to /updateprojectfiles
1 parent d3fb557 commit 0b647de

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/GitVersionExe/ArgumentParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ private static bool ParseSwitches(Arguments arguments, string name, string[] val
236236
return true;
237237
}
238238

239-
if (name.IsSwitch("targetprojectfiles"))
239+
if (name.IsSwitch("updateprojectfiles"))
240240
{
241-
arguments.TargetProjectFiles = true;
241+
arguments.UpdateProjectFiles = true;
242242
return true;
243243
}
244244

src/GitVersionExe/Arguments.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Arguments
3838
public ISet<OutputType> Output = new HashSet<OutputType>();
3939
public Verbosity Verbosity = Verbosity.Normal;
4040

41-
public bool TargetProjectFiles;
41+
public bool UpdateProjectFiles;
4242
public bool UpdateAssemblyInfo;
4343
public ISet<string> UpdateAssemblyInfoFileName = new HashSet<string>();
4444
public bool EnsureAssemblyInfo;
@@ -62,7 +62,7 @@ public GitVersionOptions ToOptions()
6262

6363
AssemblyInfo =
6464
{
65-
IsTargetingProjectFiles = TargetProjectFiles,
65+
IsTargetingProjectFiles = UpdateProjectFiles,
6666
ShouldUpdate = UpdateAssemblyInfo,
6767
EnsureAssemblyInfo = EnsureAssemblyInfo,
6868
Files = UpdateAssemblyInfoFileName

src/GitVersionExe/HelpWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ path The directory containing .git. If not defined current directory
5353
# AssemblyInfo updating
5454
/updateassemblyinfo
5555
Will recursively search for all 'AssemblyInfo.cs' files in the git repo and update them
56-
/targetprojectfiles
56+
/updateprojectfiles
5757
Will target project files (cs/fs/vbproj files) to update instead of AssemblyInfo class files,
5858
Note: This is only compatible with the newer Sdk projects
5959
/updateassemblyinfofilename

0 commit comments

Comments
 (0)