Skip to content

Commit 26a1fcb

Browse files
committed
Update Program.cs
1 parent a880a74 commit 26a1fcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DataTool/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static void Main() {
131131
}
132132

133133
if (extractFlags.OutputPath.StartsWith("{") || extractFlags.OutputPath.EndsWith("}")) {
134-
Logger.Error("Core", "Do not include {{ or }} in the output directory you pass to the tool. The path should be surrounded with quotation marks only");
134+
Logger.Error("Core", "Do not include { or } in the output directory you pass to the tool. The path should be surrounded with quotation marks only");
135135
return;
136136
}
137137
}
@@ -189,6 +189,8 @@ private static void InitFlags(HashSet<Type> tools) {
189189
FlagParser.LoadArgs();
190190

191191
Flags = FlagParser.Parse<ToolFlags>(full => PrintHelp(full, tools));
192+
if (Flags == null)
193+
return;
192194

193195
if (Flags.Debug) {
194196
Logger.ShowDebug = true;

0 commit comments

Comments
 (0)