aboutsummaryrefslogtreecommitdiffstats
path: root/src/ck.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-10-17 20:00:57 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-10-17 20:00:57 +0300
commit4c6d49f7d8ee1e6e6b849f16dc821e83d8967af8 (patch)
tree6fb28baabbbaa2718ba597d6fefe7bb7cd87903b /src/ck.c
parent37623394d364b55aa8f949fd8aa51edf65d9da10 (diff)
downloadck-4c6d49f7d8ee1e6e6b849f16dc821e83d8967af8.tar.gz
ck-4c6d49f7d8ee1e6e6b849f16dc821e83d8967af8.tar.bz2
ck-4c6d49f7d8ee1e6e6b849f16dc821e83d8967af8.zip
[v0.7] Add help subcommand
Diffstat (limited to 'src/ck.c')
-rw-r--r--src/ck.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ck.c b/src/ck.c
index a350a5f..8aeb6d1 100644
--- a/src/ck.c
+++ b/src/ck.c
@@ -34,6 +34,8 @@
#include "ckutil.h"
#include "ckerrlog.h"
+ERRLOG(main);
+
int main(int argc, char *argv[]) {
initialize_errlog(argc, argv);
UserOpt opt;
@@ -47,7 +49,7 @@ int main(int argc, char *argv[]) {
/* If the db doesn't exist ck is not initialized in the config
* location specified in opt */
if (!db_exists(&opt)) {
- printf("ck is not initialized in %s.\nRun ck init first.\n", opt.confDir);
+ ERR("ck is not initialized in %s.\nRun ck init first.\n", opt.confDir);
goto error;
}
/* Finally parse the config file and exit on error */