aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/serdi.c7
-rw-r--r--wscript1
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(
diff --git a/wscript b/wscript
index 539836d2..b0a8b897 100644
--- a/wscript
+++ b/wscript
@@ -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')