mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix commands declaration.
This commit is contained in:
@@ -111,13 +111,10 @@ namespace DiscImageChef.Commands
|
||||
Argument = new Argument<bool>(() => true), Required = false
|
||||
});
|
||||
|
||||
Add(new Option(new[]
|
||||
{
|
||||
"--sha256", "-a"
|
||||
}, "Calculates SHA256.")
|
||||
{
|
||||
Argument = new Argument<bool>(() => true), Required = false
|
||||
});
|
||||
Add(new Option("--sha256", "Calculates SHA256.")
|
||||
{
|
||||
Argument = new Argument<bool>(() => true), Required = false
|
||||
});
|
||||
|
||||
Add(new Option("--sha384", "Calculates SHA384.")
|
||||
{
|
||||
@@ -153,9 +150,9 @@ namespace DiscImageChef.Commands
|
||||
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
|
||||
}
|
||||
|
||||
public static int Invoke(bool debug, bool verbose, bool adler32, bool crc16, bool crc32, bool crc64, bool fletcher16,
|
||||
bool fletcher32, bool md5, bool sha1, bool sha256, bool sha384, bool sha512, bool spamSum,
|
||||
string imagePath, bool separatedTracks, bool wholeDisc)
|
||||
public static int Invoke(bool debug, bool verbose, bool adler32, bool crc16, bool crc32, bool crc64,
|
||||
bool fletcher16, bool fletcher32, bool md5, bool sha1, bool sha256, bool sha384,
|
||||
bool sha512, bool spamSum, string imagePath, bool separatedTracks, bool wholeDisc)
|
||||
{
|
||||
MainClass.PrintCopyright();
|
||||
|
||||
|
||||
@@ -60,14 +60,6 @@ namespace DiscImageChef.Commands
|
||||
Argument = new Argument<int>(() => 512), Required = false
|
||||
});
|
||||
|
||||
Add(new Option(new[]
|
||||
{
|
||||
"--encoding", "-e"
|
||||
}, "Name of character encoding to use.")
|
||||
{
|
||||
Argument = new Argument<string>(() => null), Required = false
|
||||
});
|
||||
|
||||
Add(new Option(new[]
|
||||
{
|
||||
"--encoding", "-e"
|
||||
|
||||
Reference in New Issue
Block a user