diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2012-12-06 15:58:06 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-12-07 17:10:56 -0800 |
commit | 66e34de1bef45dfd71ddccda57947fdb3c319640 (patch) | |
tree | 91bf860319528b09d2c0a2444a99b9704d65f348 /cli/src | |
parent | 7f9adbed0535f1d23a9b47a54d59c708b5ef5caa (diff) |
cli: add print-logdir option
Change-Id: I92fe55d72aa597cbac57a51d2e15b35d2bcfef0e
BUG: 823081
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/4275
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r-- | cli/src/cli.c | 7 |
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); } |