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/lv2ls.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/lv2ls.c')
-rw-r--r-- | tools/lv2ls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lv2ls.c b/tools/lv2ls.c index e4a5f4b..8203262 100644 --- a/tools/lv2ls.c +++ b/tools/lv2ls.c @@ -40,9 +40,9 @@ print_usage(void) printf("Usage: lv2ls [OPTION]...\n"); printf("List all installed LV2 plugins.\n"); printf("\n"); + printf(" -V, --version Display version information and exit\n"); + printf(" -h, --help Display this help and exit\n"); printf(" -n, --names Show names instead of URIs\n"); - printf(" --help Display this help and exit\n"); - printf(" --version Display version information and exit\n"); printf("\n"); printf("The environment variable LV2_PATH can be used to control where\n"); printf( @@ -56,10 +56,10 @@ main(int argc, char** argv) for (int i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--names") || !strcmp(argv[i], "-n")) { show_names = true; - } else if (!strcmp(argv[i], "--version")) { + } else if (!strcmp(argv[i], "-V") || !strcmp(argv[i], "--version")) { print_version(); return 0; - } else if (!strcmp(argv[i], "--help")) { + } else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) { print_usage(); return 0; } else { |