From 1d523e8acf6b38de634debba6fcbde99d7cd76d7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Nov 2022 15:17:53 -0500 Subject: Clean up inconsistent tool command line interfaces --- tools/lv2apply.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tools/lv2apply.c') diff --git a/tools/lv2apply.c b/tools/lv2apply.c index 1be5d0d..9c74bf3 100644 --- a/tools/lv2apply.c +++ b/tools/lv2apply.c @@ -206,11 +206,11 @@ print_usage(int status) fprintf(status ? stderr : stdout, "Usage: lv2apply [OPTION]... PLUGIN_URI\n" "Apply an LV2 plugin to an audio file.\n\n" - " -i IN_FILE Input file\n" - " -o OUT_FILE Output file\n" - " -c SYM VAL Control value\n" - " --help Display this help and exit\n" - " --version Display version information and exit\n"); + " -V, --version Display version information and exit\n" + " -c SYM VAL Control value\n" + " -h, --help Display this help and exit\n" + " -i IN_FILE Input file\n" + " -o OUT_FILE Output file\n"); return status; } @@ -223,13 +223,13 @@ main(int argc, char** argv) /* Parse command line arguments */ const char* plugin_uri = NULL; for (int i = 1; i < argc; ++i) { - if (!strcmp(argv[i], "--version")) { + if (!strcmp(argv[i], "-V") || !strcmp(argv[i], "--version")) { free(self.params); print_version(); return 0; } - if (!strcmp(argv[i], "--help")) { + if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) { free(self.params); return print_usage(0); } -- cgit v1.2.1