Skip to content

Commit 98142c5

Browse files
committed
new argument when exporting via cli to set the export path
1 parent a6baa79 commit 98142c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

TiaGitHandler/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static void Main(string[] args)
120120
}
121121

122122
exportPath = Path.GetDirectoryName(file);
123-
exportPath = Path.GetFullPath(Path.Combine(exportPath, "..\\Export"));
123+
exportPath = Path.GetFullPath(Path.Combine(exportPath, "..\\out\\Export"));
124124

125125
}
126126
else if (res != null)
@@ -129,7 +129,7 @@ static void Main(string[] args)
129129
prj = Projects.AttachProject(ver);
130130

131131
exportPath = Path.GetDirectoryName(prj.ProjectFile);
132-
exportPath = Path.GetFullPath(Path.Combine(exportPath, "..\\Export"));
132+
exportPath = Path.GetFullPath(Path.Combine(exportPath, "..\\out\\Export"));
133133
}
134134
else
135135
{
@@ -165,6 +165,9 @@ static void Main(string[] args)
165165
user = args[3];
166166
if (args.Length > 4)
167167
password = args[4];
168+
if (args.Length > 5)
169+
exportPath = args[5];
170+
168171
}
169172

170173
if (prj == null)

0 commit comments

Comments
 (0)