diff options
author | David Robillard <d@drobilla.net> | 2022-11-29 15:17:53 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-29 15:19:19 -0500 |
commit | 1d523e8acf6b38de634debba6fcbde99d7cd76d7 (patch) | |
tree | bcce034330f892b31a4ab0df8858452d47e50edc /tools/lv2bench.c | |
parent | cb26c675a1e0178694523282b9a731a7a8eb9130 (diff) | |
download | lilv-1d523e8acf6b38de634debba6fcbde99d7cd76d7.tar.gz lilv-1d523e8acf6b38de634debba6fcbde99d7cd76d7.tar.bz2 lilv-1d523e8acf6b38de634debba6fcbde99d7cd76d7.zip |
Clean up inconsistent tool command line interfaces
Diffstat (limited to 'tools/lv2bench.c')
-rw-r--r-- | tools/lv2bench.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lv2bench.c b/tools/lv2bench.c index dcf3d96..7a23025 100644 --- a/tools/lv2bench.c +++ b/tools/lv2bench.c @@ -45,11 +45,11 @@ print_usage(void) printf("lv2bench - Benchmark all installed and supported LV2 plugins.\n"); printf("Usage: lv2bench [OPTIONS] [PLUGIN_URI]\n"); printf("\n"); + printf(" -V, --version Display version information and exit\n"); printf(" -b BLOCK_SIZE Specify block size, in audio frames.\n"); printf(" -f, --full Full plottable output.\n"); printf(" -h, --help Display this help and exit.\n"); printf(" -n FRAMES Total number of audio frames to process\n"); - printf(" --version Display version information and exit\n"); } static double @@ -201,12 +201,12 @@ main(int argc, char** argv) int a = 1; for (; a < argc; ++a) { - if (!strcmp(argv[a], "--version")) { + if (!strcmp(argv[a], "-V") || !strcmp(argv[a], "--version")) { print_version(); return 0; } - if (!strcmp(argv[a], "--help")) { + if (!strcmp(argv[a], "-h") || !strcmp(argv[a], "--help")) { print_usage(); return 0; } |