diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-17 20:00:57 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-17 20:00:57 +0300 |
commit | 4c6d49f7d8ee1e6e6b849f16dc821e83d8967af8 (patch) | |
tree | 6fb28baabbbaa2718ba597d6fefe7bb7cd87903b /src/ck.c | |
parent | 37623394d364b55aa8f949fd8aa51edf65d9da10 (diff) | |
download | ck-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |