From e0e6b6e04d8fcb6014028c70a52ff08ce8206d2f Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Wed, 29 Jul 2020 05:24:02 -0700 Subject: =?UTF-8?q?(=EF=BD=A5=CF=89=EF=BD=A5)b=20key=20handlers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/kauw.nim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/kauw.nim') diff --git a/src/kauw.nim b/src/kauw.nim index c1b0d4c..feda7fb 100644 --- a/src/kauw.nim +++ b/src/kauw.nim @@ -1,14 +1,22 @@ import + os, /windowmanager, logging, /logger +const version = "0.0.1" + proc main() = + if paramCount() > 0: + if paramStr(1) == "-v": + echo "kauw version " & version + quit QuitSuccess + let wm = createWindowManager() if wm == nil: consoleLog.log(lvlError, "failed to initialize window manager") quit QuitFailure - + wm.run() quit QuitSuccess -- cgit v1.2.3