diff --git a/src/caosadvancedtools/loadFiles.py b/src/caosadvancedtools/loadFiles.py index c6714aab5b0fa795f578b63c1d69867c78854048..26907f766c1f33e7ad57abd464d29e62c69c4ecd 100755 --- a/src/caosadvancedtools/loadFiles.py +++ b/src/caosadvancedtools/loadFiles.py @@ -90,8 +90,14 @@ def main(argv=None): # Setup argument parser parser = ArgumentParser() parser.add_argument("-i", "--include", dest="include", - help="only include paths matching this regex pattern. " - "Note: exclude is given preference over include.", + help=""" +only include paths matching this regex pattern. +Note: The provided directory tree is traversed from its root. I.e. a pattern +like "/some/path/*.readme" will lead to no loading when called on "/some" as the +re does not match "/some". If you want to match some file, make sure the parent +directories are matched. E.g. -i "(/some|/some/path|.*readme). +exclude is given preference over include. + """, metavar="RE") parser.add_argument("-e", "--exclude", dest="exclude", help="exclude paths matching this regex pattern.",