diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-10-22 18:30:20 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-05 13:21:24 +0200 |
commit | 6721ea54b752b183c45bac83d705f7de40e74fd1 (patch) | |
tree | e3cc280096294279e85d3c9aa00531eefe29272e /src/jalv_console.c | |
parent | ed1015dd8c99d8fe6275b7c8fb95774d206e6ee9 (diff) | |
download | jalv-6721ea54b752b183c45bac83d705f7de40e74fd1.tar.gz jalv-6721ea54b752b183c45bac83d705f7de40e74fd1.tar.bz2 jalv-6721ea54b752b183c45bac83d705f7de40e74fd1.zip |
Add a command line argument to select a specific UI
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r-- | src/jalv_console.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c index a97b388..2d4a197 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -38,6 +38,7 @@ print_usage(const char* name, bool error) fprintf(os, " -b SIZE Buffer size for plugin <=> UI communication\n"); fprintf(os, " -c SYM=VAL Set control value (e.g. \"vol=1.4\")\n"); fprintf(os, " -d Dump plugin <=> UI communication\n"); + fprintf(os, " -U URI Load the UI with the given URI\n"); fprintf(os, " -h Display this help and exit\n"); fprintf(os, " -l DIR Load state from save directory\n"); fprintf(os, " -n NAME JACK client name\n"); @@ -74,6 +75,12 @@ jalv_init(int* argc, char*** argv, JalvOptions* opts) 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"); + return 1; + } + opts->ui_uri = jalv_strdup((*argv)[a]); } else if ((*argv)[a][1] == 'u') { if (++a == *argc) { fprintf(stderr, "Missing argument for -u\n"); |