123456789101112131415161718192021222324252627 |
- #include <stdio.h>
- #include "zip.h"
- int deanonymize;
- int main(int argc, char **argv) {
- if (argc < 2) {
- printf("Usage: %s <path_to_DOCX>\n", argv[0]);
- printf("Optionaly provide output file as second argument.\n");
- printf("-d as second argument will deanonymize given file. You can optionaly provide output file as third argument.\n");
- return 0;
- }
- char *infile = argv[1];
- char *outfile = NULL;
- if (argc > 2) {
- if (strcmp(argv[2], "-d") == 0) {
- deanonymize = 1;
- if (argc > 3) outfile = argv[3];
- } else {
- outfile = argv[2];
- }
- }
- process(infile, outfile);
- }
|