1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

With inputs builtin, -n and -R can now coexist

This commit is contained in:
Nicolas Williams
2015-04-23 23:37:11 -05:00
parent dad6e42934
commit 5e0e7a7ebd

5
main.c
View File

@@ -396,11 +396,6 @@ int main(int argc, char* argv[]) {
if (!program) usage(2);
if ((options & PROVIDE_NULL) && (options & (RAW_INPUT | SLURP))) {
fprintf(stderr, "%s: --null-input cannot be used with --raw-input or --slurp\n", progname);
die();
}
if (options & FROM_FILE) {
char *program_origin = strdup(program);
if (program_origin == NULL) {