aboutsummaryrefslogtreecommitdiffstats
path: root/src/ck.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2019-01-24 23:44:58 +0200
committergramanas <anastasis.gramm2@gmail.com>2019-01-24 23:44:58 +0200
commit138e95eec2483851a5b5ac2b2ceb0a813dbd49d8 (patch)
treefc57c6a46de6a7f61bd67de186d1f5fa167ec850 /src/ck.c
parentcfa0a7b2bddf7f0ed29b5c0413809ab10153a6bf (diff)
downloadck-138e95eec2483851a5b5ac2b2ceb0a813dbd49d8.tar.gz
ck-138e95eec2483851a5b5ac2b2ceb0a813dbd49d8.tar.bz2
ck-138e95eec2483851a5b5ac2b2ceb0a813dbd49d8.zip
Return 0 when printing version info
Diffstat (limited to 'src/ck.c')
-rw-r--r--src/ck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ck.c b/src/ck.c
index b9e6f53..1364d23 100644
--- a/src/ck.c
+++ b/src/ck.c
@@ -43,6 +43,7 @@ int main(int argc, const char **argv) {
/* get user opt */
if (parse_action(argc, argv, &opt)) {
+ if(opt.version) rc = 0;
goto error;
}
/* If the action is init or help don't load the config, skip to running it*/