Skip to content
Snippets Groups Projects
Commit 12189be8 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: fix file system check executable

parent de6c562c
No related branches found
No related tags found
2 merge requests!107ENH: add entity getters and cached functions,!98MAINT: fix file system check executable
Pipeline #35000 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment