add when isMainModule

This commit is contained in:
Christine Dodrill 2016-01-28 14:00:42 -08:00
parent 0ff50fcbe4
commit 4bec75a3b6
1 changed files with 45 additions and 44 deletions

View File

@ -38,6 +38,7 @@ proc writeVersion() =
echo gitlog
quit 1
when isMainModule:
var
totpRoot: string = getHomeDir() / "life" / "crypto" / "totp"
command: string