Fix commands declaration.

This commit is contained in:
2020-01-02 04:20:31 +00:00
parent b5ea3d681a
commit 86deddee77
2 changed files with 7 additions and 18 deletions

View File

@@ -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();

View File

@@ -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"