summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src/changelog.py
diff options
context:
space:
mode:
authorShwetha K Acharya <sacharya@redhat.com>2018-12-31 10:55:21 +0530
committerAmar Tumballi <amarts@redhat.com>2019-01-23 03:16:52 +0000
commitd193ed84ae2886d89b899e02e9642e61bdab462a (patch)
tree6c7836d3271680e9201203bcbbf6521fcd357952 /tools/glusterfind/src/changelog.py
parent86d4eac6c6f2d774a579ef134f6526f75504c46e (diff)
tools/glusterfind: option to display only files/directories
Updated full find to filter for files and directories. --full --type f lists only the files, --full --type d lists only the directories, --full (by default) lists both files and directories. fixes: #579 Change-Id: If2c91a21a131667d5de34635c1846013e8fa20b7 Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
Diffstat (limited to 'tools/glusterfind/src/changelog.py')
-rw-r--r--tools/glusterfind/src/changelog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/glusterfind/src/changelog.py b/tools/glusterfind/src/changelog.py
index feef2aebdef..437612ff0a4 100644
--- a/tools/glusterfind/src/changelog.py
+++ b/tools/glusterfind/src/changelog.py
@@ -374,6 +374,7 @@ def _get_args():
action="store_true")
parser.add_argument("--output-prefix", help="File prefix in output",
default=".")
+ parser.add_argument("--type",default="both")
parser.add_argument("-N", "--only-namespace-changes",
help="List only namespace changes",
action="store_true")