Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix version print
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 31, 2021
1 parent 4b0ee4c commit 78c5e86
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/kuriborosu.c
Expand Up @@ -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"
Expand All @@ -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];

Expand Down

0 comments on commit 78c5e86

Please sign in to comment.