[edit] inserted verbosity option to control the amount of output

This commit is contained in:
2016-05-20 09:58:10 +02:00
parent 9b7db91037
commit 54b557930f
3 changed files with 29 additions and 13 deletions

View File

@@ -23,11 +23,17 @@ if __name__ == '__main__':
'most cases PILOT database folder)'
)
parser.add_argument(
'--output', '-o', type=str, help='path to the output directory', dest='output'
'--output', '-o', type=str, help='path to the output directory',
dest='output'
)
parser.add_argument(
'--parameterfile', '-p', type=str, help='full path to the parameterfile', dest='parfile'
'--parameterfile', '-p', type=str,
help='full path to the parameterfile', dest='parfile'
)
parser.add_argument(
'--verbosity', '-v', action='count', help='increase output verbosity',
default=0, dest='verbosity'
)
args = parser.parse_args()
reassess_pilot_db(args.dbroot, args.output, args.parfile)
reassess_pilot_db(args.dbroot, args.output, args.parfile, args.verbosity)