You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -28,9 +28,9 @@ public sealed class Settings : CommandSettings
28
28
29
29
[CommandOption("-f|--fullyexcise <REGEX>")]
30
30
[Description("If this switch is specified, the next argument should be a string containing regex entries."+
31
-
"If any of these regexes matches the relative path of any file to be processed, the entire file will be excised."+
32
-
"You can specify more than one entry by separating them with three pipes, eg: "+
33
-
"Characters/Paul/.*|||Weapons/Rife.as")]
31
+
"If any of these regexes matches the relative path of any file to be processed, the entire file will be excised."+
32
+
"You can specify more than one entry by separating them with three pipes, eg: "+
33
+
"Characters/Paul/.*|||Weapons/Rife.as")]
34
34
publicstring?FullExcisionRegexString{get;init;}
35
35
36
36
[CommandOption("-s|--dontskip")]
@@ -39,7 +39,7 @@ public sealed class Settings : CommandSettings
39
39
40
40
[CommandOption("-m|--minratio")]
41
41
[Description("Specify a ratio in percent as the next argument. If the excised % of code is less than this ratio, an error will be thrown. Good to detect catastrophic changes in excision performance.")]
42
-
publicint?RequiredExcisionRatio{get;init;}=-1;
42
+
publicintRequiredExcisionRatio{get;init;}=0;
43
43
44
44
[CommandOption("-t|--funcstats")]
45
45
[Description("Outputs function stats instead of file stats. This is more accurate, but a lot slower, since it has to parse every file.")]
@@ -61,19 +61,9 @@ public sealed class Settings : CommandSettings
61
61
[Description("Ensure that all files can be analyzed without syntactic or lexicographical errors.")]
62
62
publicboolStrictMode{get;init;}
63
63
64
-
[CommandArgument(0,"[INPUT]")]
64
+
[CommandArgument(0,"<INPUT_PATH>")]
65
65
[Description("The input folder to excise.")]
66
-
publicstringInputPath{get;init;}=string.Empty;
67
-
68
-
publicoverrideValidationResultValidate()
69
-
{
70
-
if(InputPath.Length<=0)
71
-
{
72
-
returnValidationResult.Error("Must provide at least one input path!");
73
-
}
74
-
75
-
returnbase.Validate();
76
-
}
66
+
publicstring?InputPath{get;init;}
77
67
}
78
68
79
69
classRootPaths
@@ -94,10 +84,7 @@ public override int Execute([NotNull] CommandContext context, [NotNull] Settings
Console.WriteLine("Excised {0:0.00}% of server only code in file ({1}/{2}): {3}",excisionRatio,fileIdx+1,allFiles.Length,fileName);
118
+
Console.WriteLine($"[{fileIdx+1}/{allFiles.Length}] Excised {excisionRatio:0.00}% of server only code in file (took {stopwatch.Elapsed.TotalMilliseconds:0.0}ms): {fileName}");
116
119
}
117
120
else
118
121
{
119
-
Console.WriteLine("No server only code found in file ({0}/{1}): {2}",fileIdx+1,allFiles.Length,fileName);
122
+
Console.WriteLine($"[{fileIdx+1}/{allFiles.Length}] No server only code found in file: {fileName}");
0 commit comments