From 712f209ee60da9ed61f58353b05b6b025d9321c0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jul 2014 21:24:10 +0000 Subject: Add option to print control output changes to stdout. Update man pages and console jalv help output for new options. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5410 a436a847-0d15-0410-975c-d299462d15a1 --- src/jalv_console.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/jalv_console.c') diff --git a/src/jalv_console.c b/src/jalv_console.c index c13880b..f3fafbb 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -33,7 +33,8 @@ print_usage(const char* name, bool error) fprintf(os, "Usage: %s [OPTION...] PLUGIN_URI\n", name); fprintf(os, "Run an LV2 plugin as a Jack application.\n"); fprintf(os, " -h Display this help and exit\n"); - fprintf(os, " -s Show non-embedded UI if possible\n"); + fprintf(os, " -p Print control output changes to stdout\n"); + fprintf(os, " -c SYM=VAL Set control value (e.g. \"vol=1.4\")\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"); @@ -69,6 +70,8 @@ jalv_init(int* argc, char*** argv, JalvOptions* opts) return print_usage((*argv)[0], true); } else if ((*argv)[a][1] == 's') { opts->show_ui = true; + } else if ((*argv)[a][1] == 'p') { + opts->print_controls = true; } else if ((*argv)[a][1] == 'u') { if (++a == *argc) { fprintf(stderr, "Missing argument for -u\n"); -- cgit v1.2.1