Browse Source

Fix version print

Signed-off-by: falkTX <falktx@falktx.com>
main
falkTX 4 years ago
parent
commit
78c5e8640b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      src/kuriborosu.c

+ 10
- 10
src/kuriborosu.c View File

@@ -84,16 +84,7 @@ int main(int argc, char* argv[])
uint32_t opts_buffer_size = 1024;
uint32_t opts_sample_rate = 48000;

if (argc < 4 || strcmp(argv[1], "--help") == 0)
{
printf("Usage: koriborosu [INFILE|NUMSECONDS] OUTFILE PLUGIN1 PLUGIN2... etc\n"
"Where the first argument can be a filename for input file, or number of seconds to render (useful for self-generators).\n\n"
" --help Display this help and exit\n"
" --version Display version information and exit\n");
return EXIT_SUCCESS;
}

if (strcmp(argv[1], "--version") == 0)
if (argc >= 2 && strcmp(argv[1], "--version") == 0)
{
printf("koriborosu v0.0.0, using Carla v" CARLA_VERSION_STRING "\n"
"Copyright 2021 Filipe Coelho <falktx@falktx.com>\n"
@@ -103,6 +94,15 @@ int main(int argc, char* argv[])
return EXIT_SUCCESS;
}

if (argc < 4 || strcmp(argv[1], "--help") == 0)
{
printf("Usage: koriborosu [INFILE|NUMSECONDS] OUTFILE PLUGIN1 PLUGIN2... etc\n"
"Where the first argument can be a filename for input file, or number of seconds to render (useful for self-generators).\n\n"
" --help Display this help and exit\n"
" --version Display version information and exit\n");
return EXIT_SUCCESS;
}

const char* infile = argv[1];
const char* outwav = argv[2];



Loading…
Cancel
Save