Add CLI comparison command for AaruFormat images

This commit is contained in:
2025-09-29 14:45:55 +01:00
parent d5e45a92fe
commit 0f31aa1562
7 changed files with 224 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ void usage()
printf(" verify Verifies the integrity of blocks in an image.\n");
printf(" verify_sectors Verifies the integrity of all sectors in an image.\n");
printf(" compare Compares two AaruFormat images.\n");
printf(" cli-compare Compares two AaruFormat images sector by sector (CLI mode).\n");
printf(" convert Converts an AaruFormat image to another AaruFormat image.\n\n");
printf("For help with any verb, run:\n");
printf(" aaruformattool <verb> --help\n");
@@ -112,6 +113,16 @@ void usage_compare()
printf(" <filename2> Path to second image file.\n");
}
void usage_cli_compare()
{
printf("\nUsage:\n");
printf(" aaruformattool cli-compare <filename1> <filename2>\n\n");
printf("Compares two AaruFormat images sector by sector and lists all different sectors.\n");
printf("Arguments:\n");
printf(" <filename1> Path to first image file.\n");
printf(" <filename2> Path to second image file.\n");
}
void usage_convert()
{
printf("\nUsage:\n");