aboutsummaryrefslogtreecommitdiff
path: root/src/utils.nim
diff options
context:
space:
mode:
authorkitsunyan2018-05-31 07:00:31 +0000
committerkitsunyan2018-05-31 07:00:31 +0000
commit1fa779a2d7a88fe4e3e4bbc36605a7f30930ece6 (patch)
treee632eb938611f337daddc81fb8b89e3660f44967 /src/utils.nim
parent6220a954ef32fec18258b4feab6494aa016764e0 (diff)
Don't parse and validate config when "--help" is used
Diffstat (limited to 'src/utils.nim')
-rw-r--r--src/utils.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.nim b/src/utils.nim
index 7dcf620..67bf140 100644
--- a/src/utils.nim
+++ b/src/utils.nim
@@ -41,10 +41,10 @@ const
pacmanCmd* = "/usr/bin/pacman"
makepkgCmd* = "/usr/bin/makepkg"
-template haltError*(code: int): untyped =
+template haltError*(exitCode: int): untyped =
var e: ref HaltError
new(e)
- e.code = code
+ e.code = exitCode
e
template commandError*(message: string, colorNeeded: Option[bool] = none(bool),