Skip to content

Commit 0ef9c6f

Browse files
committed
Add console writes on failure cases
1 parent 638630c commit 0ef9c6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RedumpTool/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ static void Main(string[] args)
1212
// Show help if nothing is input
1313
if (args == null || args.Length == 0)
1414
{
15+
Console.WriteLine("At least one argument is required");
1516
ShowHelp();
1617
return;
1718
}
@@ -20,6 +21,7 @@ static void Main(string[] args)
2021
Feature feature = DeriveFeature(args[0]);
2122
if (feature == Feature.NONE)
2223
{
24+
Console.WriteLine("The feature could not be derived");
2325
ShowHelp();
2426
return;
2527
}
@@ -28,6 +30,7 @@ static void Main(string[] args)
2830
var downloader = CreateDownloader(feature, args);
2931
if (downloader == null)
3032
{
33+
Console.WriteLine("A downloader could not be created from the inputs");
3134
ShowHelp();
3235
return;
3336
}
@@ -45,6 +48,7 @@ static void Main(string[] args)
4548
}
4649
else if (downloaderResult.Count == 0 && downloader.Feature != Feature.Packs)
4750
{
51+
Console.WriteLine("No results were found");
4852
ShowHelp();
4953
}
5054
}

0 commit comments

Comments
 (0)