diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2apply.c | 8 | ||||
-rw-r--r-- | utils/lv2bench.c | 8 | ||||
-rw-r--r-- | utils/lv2info.c | 8 |
3 files changed, 18 insertions, 6 deletions
diff --git a/utils/lv2apply.c b/utils/lv2apply.c index 96fcf91..1d11c50 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -243,10 +243,14 @@ main(int argc, char** argv) free(self.params); print_version(); return 0; - } else if (!strcmp(argv[i], "--help")) { + } + + if (!strcmp(argv[i], "--help")) { free(self.params); return print_usage(0); - } else if (!strcmp(argv[i], "-i")) { + } + + if (!strcmp(argv[i], "-i")) { self.in_path = argv[++i]; } else if (!strcmp(argv[i], "-o")) { self.out_path = argv[++i]; diff --git a/utils/lv2bench.c b/utils/lv2bench.c index 39ee6a7..000f062 100644 --- a/utils/lv2bench.c +++ b/utils/lv2bench.c @@ -217,10 +217,14 @@ main(int argc, char** argv) if (!strcmp(argv[a], "--version")) { print_version(); return 0; - } else if (!strcmp(argv[a], "--help")) { + } + + if (!strcmp(argv[a], "--help")) { print_usage(); return 0; - } else if (!strcmp(argv[a], "-f")) { + } + + if (!strcmp(argv[a], "-f")) { full_output = true; } else if (!strcmp(argv[a], "-n") && (a + 1 < argc)) { sample_count = atoi(argv[++a]); diff --git a/utils/lv2info.c b/utils/lv2info.c index 0027da1..f5dd621 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -371,10 +371,14 @@ main(int argc, char** argv) if (!strcmp(argv[i], "--version")) { print_version(); return 0; - } else if (!strcmp(argv[i], "--help")) { + } + + if (!strcmp(argv[i], "--help")) { print_usage(); return 0; - } else if (!strcmp(argv[i], "-p")) { + } + + if (!strcmp(argv[i], "-p")) { plugin_file = argv[++i]; } else if (!strcmp(argv[i], "-m")) { manifest_file = argv[++i]; |