diff options
-rw-r--r-- | src/serdi.c | 7 | ||||
-rw-r--r-- | wscript | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c index 833e92d2..c3f7aa2e 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -138,6 +138,11 @@ main(int argc, char** argv) } } + if (a == argc) { + fprintf(stderr, "Missing input\n"); + return 1; + } + const uint8_t* input = (const uint8_t*)argv[a++]; if (from_file) { in_name = in_name ? in_name : input; @@ -191,7 +196,7 @@ main(int argc, char** argv) if (output_syntax == SERD_NTRIPLES) { output_style |= SERD_STYLE_ASCII; } else { - output_style |= SERD_STYLE_ABBREVIATED; + output_style |= SERD_STYLE_ABBREVIATED|SERD_STYLE_CURIED; } SerdWriter* writer = serd_writer_new( @@ -222,6 +222,7 @@ def test(ctx): './serdi_static -c > /dev/null', './serdi_static -i illegal > /dev/null', './serdi_static -o illegal > /dev/null', + './serdi_static -i turtle > /dev/null', './serdi_static /no/such/file > /dev/null'], 1, name='serdi-cmd-bad') |