summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 7788ce38914..2b94df87cc4 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -298,7 +298,12 @@ cli_opt_parse (char *opt, struct cli_state *state)
return 1;
if (strcmp (opt, "version") == 0) {
- puts (argp_program_version);
+ cli_out (argp_program_version);
+ exit (0);
+ }
+
+ if (strcmp (opt, "print-logdir") == 0) {
+ cli_out (DEFAULT_LOG_FILE_DIRECTORY);
exit (0);
}