diff options
author | David Robillard <d@drobilla.net> | 2022-12-11 16:37:22 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-11 16:39:58 -0500 |
commit | 923129205973fa416870f98cb7cd33282211baa4 (patch) | |
tree | 366e7288ee4c4fe4f45a8e3c1dc30f9c2c282d90 /src | |
parent | ce3dae1ea1de365c73aedaa1d55c01bce2987a15 (diff) | |
download | jalv-923129205973fa416870f98cb7cd33282211baa4.tar.gz jalv-923129205973fa416870f98cb7cd33282211baa4.tar.bz2 jalv-923129205973fa416870f98cb7cd33282211baa4.zip |
Clean up command line help output
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv_gtk.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index fe0c25a..eb37cfc 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -74,7 +74,7 @@ on_window_destroy(GtkWidget* ZIX_UNUSED(widget), gpointer ZIX_UNUSED(data)) int jalv_frontend_init(int* argc, char*** argv, JalvOptions* opts) { - GOptionEntry entries[] = { + const GOptionEntry entries[] = { {"load", 'l', 0, @@ -144,21 +144,21 @@ jalv_frontend_init(int* argc, char*** argv, JalvOptions* opts) G_OPTION_ARG_DOUBLE, &opts->update_rate, "UI update frequency", - NULL}, + "HZ"}, {"scale-factor", 0, 0, G_OPTION_ARG_DOUBLE, &opts->scale_factor, "UI scale factor", - NULL}, + "SCALE"}, {"control", 'c', 0, G_OPTION_ARG_STRING_ARRAY, &opts->controls, "Set control value (e.g. \"vol=1.4\")", - NULL}, + "SETTING"}, {"print-controls", 'p', 0, @@ -172,7 +172,7 @@ jalv_frontend_init(int* argc, char*** argv, JalvOptions* opts) G_OPTION_ARG_STRING, &opts->name, "JACK client name", - NULL}, + "NAME"}, {"exact-jack-name", 'x', 0, @@ -181,6 +181,7 @@ jalv_frontend_init(int* argc, char*** argv, JalvOptions* opts) "Exact JACK client name (exit if taken)", NULL}, {0, 0, 0, G_OPTION_ARG_NONE, 0, 0, 0}}; + GError* error = NULL; const int err = gtk_init_with_args(argc, |