diff options
Diffstat (limited to 'src/ck.c')
-rw-r--r-- | src/ck.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -44,12 +44,13 @@ int main(int argc, char *argv[]) { if (parse_action(argc, argv, &opt)) { goto error; } - /* If the action is init don't load the config, skip to running init*/ - if (opt.action != CKA_INIT) { + /* If the action is init or help don't load the config, skip to running it*/ + if (opt.action != CKA_INIT && + opt.action != CKA_HELP) { /* If the db doesn't exist ck is not initialized in the config * location specified in opt */ if (!db_exists(&opt)) { - ERR("ck is not initialized in %s.\nRun ck init first.\n", opt.confDir); + ERR("ck is not initialized in %s.\nRun ck init first.", opt.confDir); goto error; } /* Finally parse the config file and exit on error */ |