fixed some bugs
This commit is contained in:
@@ -75,7 +75,7 @@ internal static partial class Modes
|
||||
ColoredConsole.Write("Input file path: ", ConsoleColor.Blue);
|
||||
input = ColoredConsole.ReadLine(ConsoleColor.Gray);
|
||||
if (string.IsNullOrEmpty(input))
|
||||
throw new NullReferenceException();
|
||||
throw new ArgumentException("Input file path is required");
|
||||
inputPath = input;
|
||||
break;
|
||||
|
||||
@@ -83,9 +83,9 @@ internal static partial class Modes
|
||||
case "output":
|
||||
ColoredConsole.Write("Output file path [default=stdout]: ", ConsoleColor.Blue);
|
||||
input = ColoredConsole.ReadLine(ConsoleColor.Gray);
|
||||
if (string.IsNullOrEmpty(input))
|
||||
throw new ArgumentException("Input file path is required");
|
||||
inputPath = input;
|
||||
if(string.IsNullOrEmpty(input))
|
||||
outputPath = null;
|
||||
else outputPath = input;
|
||||
break;
|
||||
|
||||
case "s":
|
||||
|
||||
Reference in New Issue
Block a user