diff msmetaenhancer_wrapper.py @ 3:f387ebd6b734 draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/msmetaenhancer commit 6858f7bc3c3cf68fd5002a2241c79923b2ca9acd"
author recetox
date Fri, 06 May 2022 12:21:30 +0000
parents 8338640d8676
children 2ada1099f42e
line wrap: on
line diff
--- a/msmetaenhancer_wrapper.py	Mon Apr 25 06:29:43 2022 +0000
+++ b/msmetaenhancer_wrapper.py	Fri May 06 12:21:30 2022 +0000
@@ -12,9 +12,11 @@
     parser.add_argument("--output_file", type=str, help="Path to output spectra file.")
     parser.add_argument("--jobs", type=str, help="Sequence of conversion jobs to be used.")
     parser.add_argument("--log_file", type=str, help="Path to log with details of the annotation process.")
+    parser.add_argument("--log_level", type=str, default='info',
+                        help="Severity of log messages  present in the log file.")
     args = parser.parse_args()
 
-    app = Application(log_file=args.log_file)
+    app = Application(log_level=args.log_level, log_file=args.log_file)
 
     # set matchms logging level to avoid extensive messages in stdout while reading file
     set_matchms_logger_level("ERROR")