From 494f4990d348c5559161af2a9af40a0e8c82b655 Mon Sep 17 00:00:00 2001 From: Paolo Veglio <paolo.veglio@ssec.wisc.edu> Date: Tue, 7 Nov 2023 18:09:31 +0000 Subject: [PATCH] modified entrypoint to add debug option --- entrypoint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/entrypoint.py b/entrypoint.py index 6056712..cd12319 100644 --- a/entrypoint.py +++ b/entrypoint.py @@ -73,9 +73,8 @@ if __name__ == "__main__": # version=_VERSION, # help="print version and exit", # ) - parser.add_argument( - "-v", "--verbose", action="store_true", help="print verbose information" - ) + parser.add_argument("-v", "--verbose", action="store_true", help="print verbose information") + parser.add_argument("-d", "--debug", action="store_true", help="activate debug mode") args = parser.parse_args() @@ -97,6 +96,7 @@ if __name__ == "__main__": eco_file = args.eco or _eco_file out_file = args.out or "test_out.nc" verbose = args.verbose or False + debug = args.debug or False main( satellite=satellite, @@ -117,4 +117,5 @@ if __name__ == "__main__": eco_file=eco_file, out_file=out_file, verbose=verbose, + debug=debug, ) -- GitLab