Commit ec5410cf authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed exception in case no arguments are provided to command line interface.

parent c11b67e1
Pipeline #951 passed with stages
in 7 minutes and 22 seconds
...@@ -364,18 +364,22 @@ if __name__ == '__main__': ...@@ -364,18 +364,22 @@ if __name__ == '__main__':
wfa('/misc/hy5/scheffler/tmp/crlf', '%s\t%s\t%s\t%s\n' % (dt.now(), getuser(), gethostname(), ' '.join(sys.argv))) wfa('/misc/hy5/scheffler/tmp/crlf', '%s\t%s\t%s\t%s\n' % (dt.now(), getuser(), gethostname(), ' '.join(sys.argv)))
parsed_args = get_arosics_argparser().parse_args() parser = get_arosics_argparser()
parsed_args = parser.parse_args()
print('======================================================================\n'
'# AROSICS v%s #'%__version__+'\n' if sys.argv == 1:
'# An Automated and Robust Open-Source Image Co-Registration Software #' # no arguments provided
'# for Multi-Sensor Satellite Data #\n' print('======================================================================\n'
'# - python implementation by Daniel Scheffler #\n' '# AROSICS v%s #'%__version__+'\n'
'======================================================================\n') '# An Automated and Robust Open-Source Image Co-Registration Software #\n'
'# for Multi-Sensor Satellite Data #\n'
t0 = time.time() '# - python implementation by Daniel Scheffler #\n'
parsed_args.func(parsed_args) '======================================================================\n')
print('\ntotal processing time: %.2fs' %(time.time()-t0)) parser.print_help()
else:
t0 = time.time()
parsed_args.func(parsed_args)
print('\ntotal processing time: %.2fs' %(time.time()-t0))
else: else:
warnings.warn("The script 'arosics_cli.py' provides a command line argument parser for AROSICS and is not to be " warnings.warn("The script 'arosics_cli.py' provides a command line argument parser for AROSICS and is not to be "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment