From 4c6d49f7d8ee1e6e6b849f16dc821e83d8967af8 Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 17 Oct 2018 20:00:57 +0300 Subject: [v0.7] Add help subcommand --- src/ck.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ck.c') 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 */ -- cgit v1.2.3