diff --git a/CHANGELOG.md b/CHANGELOG.md index 3663667106caa05ea629b34e096f71ae36125d00..205fcb077cb0ca8f8facc6c1f636539f9bbb2384 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## ### Added ### +- Added location argument to `src/caosdb/utils/checkFileSystemConsistency.py` ### Changed ### @@ -16,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed ### ### Fixed ### +- Fixed `src/caosdb/utils/checkFileSystemConsistency.py` ### Security ### diff --git a/src/caosdb/utils/checkFileSystemConsistency.py b/src/caosdb/utils/checkFileSystemConsistency.py index 6dd35f8a6f699a2c74ff41a9924cd65c436efd42..a142c1dd7ffd1a4e6ee6cfc85891e1bf70f98d89 100755 --- a/src/caosdb/utils/checkFileSystemConsistency.py +++ b/src/caosdb/utils/checkFileSystemConsistency.py @@ -82,17 +82,15 @@ def main(argv=None): program_build_date = str(__updated__) program_version_message = '%%(prog)s %s (%s)' % ( program_version, program_build_date) - program_shortdesc = __import__('__main__').__doc__.split("\n")[1] - program_license = '''%s + program_license = ''' - Created by timm fitschen on %s. Copyright 2016 BMPG. All rights reserved. Distributed on an "AS IS" basis without warranties or conditions of any kind, either express or implied. USAGE -''' % (program_shortdesc, str(__date__)) +''' # Setup argument parser parser = ArgumentParser(description=program_license, @@ -113,6 +111,7 @@ USAGE help="timeout in seconds for the database requests. [default: %(default)s]", metavar="TIMEOUT", default="200") + parser.add_argument('location') # Process arguments args = parser.parse_args() @@ -121,7 +120,7 @@ USAGE VERBOSITY = args.verbose TIMEOUT = args.timeout - runCheck(TIMEOUT) + print(runCheck(TIMEOUT, args.location).messages) return 0