| 36 | const char *progname = NULL; |
| 37 | |
| 38 | static void Usage() { |
| 39 | std::cout |
| 40 | << progname << " - Pax dump tools \n\n" |
| 41 | << "Used to dump pax file && pax aux table \n" |
| 42 | << "Usage:\n " << progname << " -f [FILE] [OPTION]...\n\n" |
| 43 | << "Options:\n" |
| 44 | |
| 45 | << " -h, -?, --help Print this help, then exit\n" |
| 46 | << " -v, --version Print the version of current pax " |
| 47 | "tools\n" |
| 48 | |
| 49 | << " -f, --file [file] Specify the file name to be " |
| 50 | "dumped\n" |
| 51 | << " -t, --toast-file [file] Specify the toast file name\n" |
| 52 | << " -g, --group-range [start, len] Specify print with range of " |
| 53 | "group ids\n" |
| 54 | << " -c, --column-range [start, len] Specify print with range of " |
| 55 | "column ids\n" |
| 56 | << " -r, --row-range [start, len] Specify print with range of " |
| 57 | "column ids\n" |
| 58 | |
| 59 | << " -a, --print-all Print the all information, which " |
| 60 | "contains meta and data\n" |
| 61 | << " -m, --print-all-desc Print the all desc part " |
| 62 | "information, which contains version, post script, footer\n" |
| 63 | << " -p, --print-post-script-info Print the postscript " |
| 64 | "information\n" |
| 65 | << " -e, --print-footer-info Print the footer information\n" |
| 66 | << " -s, --print-schema-info Print the schema information\n" |
| 67 | << " -b, --print-group-info Print the group information\n" |
| 68 | << " -o, --print-group-footer Print the group footer " |
| 69 | "information\n" |
| 70 | << " -d, --print-data Print the data part " |
| 71 | "information\n\n" |
| 72 | << "Example:\n" |
| 73 | << " " << progname << " -f test.file -a -g 0,3 -c 0,5 -r 0,10\n" |
| 74 | << std::endl; |
| 75 | } |
| 76 | |
| 77 | static struct option long_options[] = { |
| 78 | {"help", no_argument, NULL, '?'}, |