summaryrefslogtreecommitdiffstats
path: root/tools/lv2apply.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-29 15:17:53 -0500
committerDavid Robillard <d@drobilla.net>2022-11-29 15:19:19 -0500
commit1d523e8acf6b38de634debba6fcbde99d7cd76d7 (patch)
treebcce034330f892b31a4ab0df8858452d47e50edc /tools/lv2apply.c
parentcb26c675a1e0178694523282b9a731a7a8eb9130 (diff)
downloadlilv-1d523e8acf6b38de634debba6fcbde99d7cd76d7.tar.gz
lilv-1d523e8acf6b38de634debba6fcbde99d7cd76d7.tar.bz2
lilv-1d523e8acf6b38de634debba6fcbde99d7cd76d7.zip
Clean up inconsistent tool command line interfaces
Diffstat (limited to 'tools/lv2apply.c')
-rw-r--r--tools/lv2apply.c14
1 files changed, 7 insertions, 7 deletions
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);
}