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
Branches
Tags
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): ...@@ -82,17 +82,15 @@ def main(argv=None):
program_build_date = str(__updated__) program_build_date = str(__updated__)
program_version_message = '%%(prog)s %s (%s)' % ( program_version_message = '%%(prog)s %s (%s)' % (
program_version, program_build_date) program_version, program_build_date)
program_shortdesc = __import__('__main__').__doc__.split("\n")[1] program_license = '''
program_license = '''%s
Created by timm fitschen on %s.
Copyright 2016 BMPG. All rights reserved. Copyright 2016 BMPG. All rights reserved.
Distributed on an "AS IS" basis without warranties Distributed on an "AS IS" basis without warranties
or conditions of any kind, either express or implied. or conditions of any kind, either express or implied.
USAGE USAGE
''' % (program_shortdesc, str(__date__)) '''
# Setup argument parser # Setup argument parser
parser = ArgumentParser(description=program_license, parser = ArgumentParser(description=program_license,
...@@ -113,6 +111,7 @@ USAGE ...@@ -113,6 +111,7 @@ USAGE
help="timeout in seconds for the database requests. [default: %(default)s]", help="timeout in seconds for the database requests. [default: %(default)s]",
metavar="TIMEOUT", metavar="TIMEOUT",
default="200") default="200")
parser.add_argument('location')
# Process arguments # Process arguments
args = parser.parse_args() args = parser.parse_args()
...@@ -121,7 +120,7 @@ USAGE ...@@ -121,7 +120,7 @@ USAGE
VERBOSITY = args.verbose VERBOSITY = args.verbose
TIMEOUT = args.timeout TIMEOUT = args.timeout
runCheck(TIMEOUT) print(runCheck(TIMEOUT, args.location).messages)
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment