mirror of
https://github.com/Geckon01/Watermark.Net.git
synced 2026-06-11 00:53:22 +03:00
Small code improvements
This commit is contained in:
@@ -8,6 +8,8 @@ using Watrmark.Net_CLI.Watermak.Net.CLI.Constants;
|
||||
using Watrmark.Net_CLI;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
//The CLI version is not fully ready yet. To be implemented in future
|
||||
|
||||
Parser.Default.ParseArguments<ConsoleOptions>(args)
|
||||
.WithParsed<ConsoleOptions>(option => {
|
||||
switch (option.WatermarkType)
|
||||
@@ -24,6 +26,8 @@ Parser.Default.ParseArguments<ConsoleOptions>(args)
|
||||
else
|
||||
ProccessDirectoryText(option);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException("Watermark type not provided.");
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user