diff options
Diffstat (limited to 'src/serdi.c')
-rw-r--r-- | src/serdi.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/serdi.c b/src/serdi.c index bc68e591..fd7fdb15 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -13,7 +13,6 @@ #include "serd/stream.h" #include "serd/string_view.h" #include "serd/syntax.h" -#include "serd/version.h" #include "serd/world.h" #include "serd/writer.h" @@ -29,22 +28,6 @@ #define MAX_DEPTH 128U static int -print_version(void) -{ - printf("serdi %d.%d.%d <http://drobilla.net/software/serd>\n", - SERD_MAJOR_VERSION, - SERD_MINOR_VERSION, - SERD_MICRO_VERSION); - - printf("Copyright 2011-2023 David Robillard <d@drobilla.net>.\n" - "License ISC: <https://spdx.org/licenses/ISC>.\n" - "This is free software; you are free to change and redistribute it." - "\nThere is NO WARRANTY, to the extent permitted by law.\n"); - - return 0; -} - -static int print_usage(const char* const name, const bool error) { static const char* const description = @@ -120,7 +103,7 @@ main(int argc, char** argv) } if (!strcmp(argv[a], "--version")) { - return print_version(); + return serd_print_version(argv[0]); } for (int o = 1; argv[a][o]; ++o) { @@ -144,7 +127,7 @@ main(int argc, char** argv) } else if (opt == 't') { writer_flags |= SERD_WRITE_TERSE; } else if (opt == 'v') { - return print_version(); + return serd_print_version(argv[0]); } else if (opt == 's') { from_string = true; break; |