| @@ -52,6 +52,7 @@ void parse_options(int argc, char **argv) |
| 52 | 52 | | |
| 53 | 53 | | _options.from_stdin = false; |
| 54 | 54 | | _options.to_stdout = false; |
| 55 | + | _options.stdout_separator = '\n'; |
| 55 | 56 | | _options.recursive = false; |
| 56 | 57 | | _options.startnum = 0; |
| 57 | 58 | | |
| @@ -75,7 +76,7 @@ void parse_options(int argc, char **argv) |
| 75 | 76 | | _options.clean_cache = false; |
| 76 | 77 | | _options.private_mode = false; |
| 77 | 78 | | |
| 78 | | − | while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:opqrS:s:T:tvZz:")) != -1) { |
| 79 | + | while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:0opqrS:s:T:tvZz:")) != -1) { |
| 79 | 80 | | switch (opt) { |
| 80 | 81 | | case '?': |
| 81 | 82 | | print_usage(); |
| @@ -128,6 +129,10 @@ void parse_options(int argc, char **argv) |
| 128 | 129 | | case 'N': |
| 129 | 130 | | _options.res_name = optarg; |
| 130 | 131 | | break; |
| 132 | + | case '0': |
| 133 | + | _options.stdout_separator = '\0'; |
| 134 | + | /* -0 implies -o */ |
| 135 | + | /* fall through */ |
| 131 | 136 | | case 'o': |
| 132 | 137 | | _options.to_stdout = true; |
| 133 | 138 | | break; |