aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 3025b494..9a5495af 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -74,6 +74,7 @@ print_usage(const char* const name, const bool error)
fprintf(os, " -t Write terser output without newlines.\n");
fprintf(os, " -v Display version information and exit.\n");
fprintf(os, " -w FILENAME Write output to FILENAME instead of stdout.\n");
+ fprintf(os, " -x Support parsing variable nodes like `?x'.\n");
return error ? 1 : 0;
}
@@ -190,6 +191,8 @@ main(int argc, char** argv)
writer_flags |= SERD_WRITE_TERSE;
} else if (opt == 'v') {
return print_version();
+ } else if (opt == 'x') {
+ reader_flags |= SERD_READ_VARIABLES;
} else if (argv[a][1] == 'I') {
if (++a == argc) {
return missing_arg(prog, 'I');