Skip to content
Snippets Groups Projects
Commit 0572da24 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed CLI argument parser.

parent cf7cffd2
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -34,11 +34,12 @@ def get_enpt_argparser():
add('--CPUs', type=int, default=None,
help='number of CPU cores to be used for processing (default: "None" -> use all available')
add('-im', '--path_l1b_enmap_image', default=None,
help='input path of the EnMAP L1B image to be processed (zip-archive or root directory)')
add('-od', '--output_dir', default=None,
help='output directory where processed data and log files are saved')
help='input path of the EnMAP L1B image to be processed '
'(zip-archive or root directory; must be given if not contained in --json-config.)')
add('-imgap', '--path_l1b_enmap_image_gapfill', default=None,
help='input path of an adjacent EnMAP L1B image to be used for gap-filling (zip-archive or root directory)')
add('-od', '--output_dir', default=None,
help='output directory where processed data and log files are saved')
add('-wd', '--working_dir', default=None,
help='directory to be used for temporary files')
......@@ -88,6 +89,6 @@ def run_job(config: EnPTConfig):
if __name__ == '__main__':
parsed_args = get_enpt_argparser().parse_args()
parsed_args.func(parsed_args)
parsed_args.func(get_config(parsed_args))
print('\nready.')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment