ssn-installer/src/errorAndExit.c

17 lines
1 KiB
C
Raw Normal View History

2018-09-14 01:41:35 +02:00
#include <stdio.h>
#include <stdlib.h>
#include "errorAndExit.h"
void errorAndExit() {
fprintf(stderr, "\nUsage:\n");
fprintf(stderr, " ./patch-installer --disk main.z01 --offset 456z --size 1000 [--keys 123,456,789] [--previous oldfile.tor]\n");
2018-09-14 01:41:35 +02:00
fprintf(stderr, "Options:\n");
fprintf(stderr, " -d, --disk: The path to the disk file that contains the file we want to extract.\n");
fprintf(stderr, " -o, --offset: The offset into the disk, given in bytes, where the local file header of the file we want to extract starts.\n");
fprintf(stderr, " -s, --size: The stored size of the file we want to extract (= the compressed size). After inflation, the file will likely be bigger than this.\n");
fprintf(stderr, " -k, --keys: Optionally, the three decryption keys used to decrypt the file before inflation.\n");
2018-09-14 02:01:15 +02:00
fprintf(stderr, " -p, --previous: Optionally, the location of the previous version of this file, in case this disk only contains the xdelta3 differences and not an actual file.\n");
2018-09-14 01:41:35 +02:00
exit(1);
}