diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/serd_config.h | 2 | ||||
-rw-r--r-- | src/serdi.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/serd_config.h b/src/serd_config.h index 8dbfe28b..65c294c3 100644 --- a/src/serd_config.h +++ b/src/serd_config.h @@ -36,7 +36,7 @@ #define SERD_SRC_SERD_CONFIG_H // Define version unconditionally so a warning will catch a mismatch -#define SERD_VERSION "0.31.3" +#define SERD_VERSION "0.31.5" #if !defined(SERD_NO_DEFAULT_CONFIG) diff --git a/src/serdi.c b/src/serdi.c index f6a329bb..deeac384 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -201,6 +201,14 @@ main(int argc, char** argv) break; } + if (!strcmp(argv[a], "--help")) { + return print_usage(prog, false); + } + + if (!strcmp(argv[a], "--version")) { + return print_version(); + } + for (int o = 1; argv[a][o]; ++o) { const char opt = argv[a][o]; |