diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/spreed.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/spreed.c b/src/spreed.c index b6a6403..4046282 100755 --- a/src/spreed.c +++ b/src/spreed.c @@ -15,6 +15,7 @@ exit #include <wchar.h> #include <wctype.h> +#define SPRD_VER L"0.1" #define CLR_FG L"\033[31m" #define CLR_RESET L"\033[0m" #define SPRD_CLOCK CLOCK_MONOTONIC @@ -52,6 +53,13 @@ int main(int argc, char *argv[]) iword = 0; b_word_break = 0; + if (argc > 1) { + if (strstr(argv[1], "-v") || strstr(argv[1], "--v") || strstr(argv[1], "-V") || strstr(argv[1], "--V")) { + fwprintf(stdout, "spreed version "SPRD_VER"\n"); + return 0; + } + } + str = getenv("SPREED_WPM"); if (str == NULL && argc > 1) { str = argv[1]; |
