diff options
author | kitsunyan | 2018-05-31 07:00:31 +0000 |
---|---|---|
committer | kitsunyan | 2018-05-31 07:00:31 +0000 |
commit | 1fa779a2d7a88fe4e3e4bbc36605a7f30930ece6 (patch) | |
tree | e632eb938611f337daddc81fb8b89e3660f44967 /src/utils.nim | |
parent | 6220a954ef32fec18258b4feab6494aa016764e0 (diff) |
Don't parse and validate config when "--help" is used
Diffstat (limited to 'src/utils.nim')
-rw-r--r-- | src/utils.nim | 4 |
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), |