Small code improvements

This commit is contained in:
DESKTOP-QG096I2\RentPc
2025-07-23 23:43:06 +03:00
parent 3a67f95cf4
commit acab6cf5a9
4 changed files with 9 additions and 5 deletions

View File

@@ -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.");
}
})