Rename commands and add aliases.

This commit is contained in:
2020-01-03 18:24:44 +00:00
parent 56e24f1ed9
commit 03573f1cb6
17 changed files with 43 additions and 38 deletions

View File

@@ -51,6 +51,8 @@ namespace DiscImageChef.Commands.Image
public ChecksumCommand() : base("checksum", "Checksums an image.")
{
AddAlias("chk");
Add(new Option(new[]
{
"--adler32", "-a"

View File

@@ -49,6 +49,8 @@ namespace DiscImageChef.Commands.Image
{
public CompareCommand() : base("compare", "Compares two disc images.")
{
AddAlias("cmp");
AddArgument(new Argument<string>
{
Arity = ArgumentArity.ExactlyOne, Description = "First media image path", Name = "image-path1"

View File

@@ -52,7 +52,7 @@ namespace DiscImageChef.Commands.Image
{
internal class ConvertImageCommand : Command
{
public ConvertImageCommand() : base("convert-image", "Converts one image to another format.")
public ConvertImageCommand() : base("convert", "Converts one image to another format.")
{
Add(new Option(new[]
{

View File

@@ -43,7 +43,7 @@ namespace DiscImageChef.Commands.Image
{
internal class ImageInfoCommand : Command
{
public ImageInfoCommand() : base("image-info",
public ImageInfoCommand() : base("info",
"Opens a media image and shows information about the media it represents and metadata.")
{
AddArgument(new Argument<string>

View File

@@ -42,7 +42,7 @@ namespace DiscImageChef.Commands.Image
{
internal class PrintHexCommand : Command
{
public PrintHexCommand() : base("printhex", "Prints a sector, in hexadecimal values, to the console.")
public PrintHexCommand() : base("print", "Prints a sector, in hexadecimal values, to the console.")
{
Add(new Option(new[]
{