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>
This commit is contained in:
parent
7f9adbed05
commit
66e34de1be
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user