aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_console.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-18 06:54:24 +0000
committerDavid Robillard <d@drobilla.net>2012-02-18 06:54:24 +0000
commitbfee18f05fae23fa8107de86761c79d07955e0ca (patch)
tree83ce5ca59a588d2eb63fa3fbf82ca3b11e6af61f /src/jalv_console.c
parent719c973b349724657c71b545f4f3d4498d633b23 (diff)
downloadjalv-bfee18f05fae23fa8107de86761c79d07955e0ca.tar.gz
jalv-bfee18f05fae23fa8107de86761c79d07955e0ca.tar.bz2
jalv-bfee18f05fae23fa8107de86761c79d07955e0ca.zip
Add -d option and implement proper communication dumping.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3986 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r--src/jalv_console.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c
index 80be5cd..ae5c30f 100644
--- a/src/jalv_console.c
+++ b/src/jalv_console.c
@@ -1,5 +1,5 @@
/*
- Copyright 2007-2011 David Robillard <http://drobilla.net>
+ Copyright 2007-2012 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -30,6 +30,7 @@ print_usage(const char* name, bool error)
fprintf(os, " -h Display this help and exit\n");
fprintf(os, " -u UUID UUID for Jack session restoration\n");
fprintf(os, " -l DIR Load state from save directory\n");
+ fprintf(os, " -d DIR Dump plugin <=> UI communication\n");
return error ? 1 : 0;
}
@@ -58,6 +59,8 @@ jalv_init(int* argc, char*** argv, JalvOptions* opts)
return 1;
}
opts->load = jalv_strdup((*argv)[a]);
+ } else if ((*argv)[a][1] == 'd') {
+ opts->dump = true;
} else {
fprintf(stderr, "Unknown option %s\n", (*argv)[a]);
return print_usage((*argv)[0], true);