| 42 | */ |
| 43 | |
| 44 | static void usage(void) |
| 45 | { |
| 46 | printf("Escape an input string, adopting the av_get_token() escaping logic\n"); |
| 47 | printf("usage: ffescape [OPTIONS]\n"); |
| 48 | printf("\n" |
| 49 | "Options:\n" |
| 50 | "-e echo each input line on output\n" |
| 51 | "-f flag select an escape flag, can assume the values 'whitespace' and 'strict'\n" |
| 52 | "-h print this help\n" |
| 53 | "-i INFILE set INFILE as input file, stdin if omitted\n" |
| 54 | "-l LEVEL set the number of escaping levels, 1 if omitted\n" |
| 55 | "-m ESCAPE_MODE select escape mode between 'auto', 'backslash', 'quote'\n" |
| 56 | "-o OUTFILE set OUTFILE as output file, stdout if omitted\n" |
| 57 | "-p PROMPT set output prompt, is '=> ' by default\n" |
| 58 | "-s SPECIAL_CHARS set the list of special characters\n"); |
| 59 | } |
| 60 | |
| 61 | int main(int argc, char **argv) |
| 62 | { |