Skip to content

Commit 3ff4163

Browse files
committed
OutputDir simplification
1 parent a4cfb96 commit 3ff4163

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

Program.cs

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal static class NeoDoc
1818
{
1919
public const bool DEBUGGING = false;
2020
public static int Progress = 0;
21-
public static string NEWDIR = Directory.GetCurrentDirectory() + "/output";
21+
public static string NEWDIR = "";
2222

2323
public enum ERROR_CODES: int
2424
{
@@ -76,25 +76,8 @@ public static void Main()
7676
return;
7777
}
7878

79-
bool generateDocumentation = true;
80-
81-
if (args.Length > 2) {
82-
string outputFolderArg = args[2];
83-
84-
if (string.IsNullOrEmpty(outputFolderArg))
85-
{
86-
Console.Error.WriteLine("Provided output folder '" + outputFolderArg + "' is null or an empty string!");
87-
88-
Environment.ExitCode = (int)ERROR_CODES.NOT_EXISTS;
89-
90-
return;
91-
}
92-
93-
NEWDIR = outputFolderArg;
94-
95-
if (args.Length > 3)
96-
generateDocumentation = bool.Parse(args[3]);
97-
}
79+
if (args.Length > 2)
80+
NEWDIR = args[2];
9881

9982
// Build the file tree
10083
string[] files = Directory.GetFiles(folder, "*.*", SearchOption.AllDirectories);
@@ -138,7 +121,7 @@ public static void Main()
138121

139122
List<WrapperParam> wrapperList = new List<WrapperParam>(ProcessFileParsers(fileParsers, out SortedDictionary<string, SortedDictionary<string, List<DataStructure>>> globalsDict));
140123

141-
if (!generateDocumentation)
124+
if (string.IsNullOrEmpty(NEWDIR))
142125
{
143126
WriteDebugInfo("Finished checking the documentation.");
144127

0 commit comments

Comments
 (0)