NeoGeographyToolkit / StereoPipeline

The NASA Ames Stereo Pipeline is a suite of automated geodesy & stereogrammetry tools designed for processing planetary imagery captured from orbiting and landed robotic explorers on other planets.
Apache License 2.0
479 stars 168 forks source link

Delete PassThroughOptionParser #317

Closed ScottMcMichael closed 3 years ago

ScottMcMichael commented 3 years ago

The PassThroughOptionParser in asp_cmd_utils.py can now be replaced by using the argparse.ArgumentParser class with the "parse_known_args" function. There are a few places that use PassThroughOptionParser, once they are updated we can delete this class.

grep -nrI PassThroughOption src/ src/asp/IceBridge/extract_icebridge_ATM_points.py:104: parser = asp_cmd_utils.PassThroughOptionParser(usage=usage, epilog="") src/asp/Tools/mapproject:207: parser = asp_cmd_utils.PassThroughOptionParser(usage=usage, epilog=baseHelpText) src/asp/Tools/parallel_bundle_adjust:281: p = PassThroughOptionParser(usage=usage) src/asp/Tools/stereo:48: p = PassThroughOptionParser(usage=usage) src/asp/Tools/parallel_sfs:247: parser = asp_cmd_utils.PassThroughOptionParser(usage=usage, epilog=baseHelpText) src/asp/Tools/parallel_stereo:568: p = PassThroughOptionParser(usage=usage) src/asp/Tools/datum_convert:306: parser = asp_cmd_utils.PassThroughOptionParser(usage=usage, epilog=baseHelpText) src/asp/Tools/stereo.in:48: p = PassThroughOptionParser(usage=usage) src/asp/Tools/stereo_utils.py.in:84:class PassThroughOptionParser(optparse.OptionParser): src/asp/Tools/stereo_utils.py:84:class PassThroughOptionParser(optparse.OptionParser):

ScottMcMichael commented 3 years ago

a1c5c0193031d9a6409c249dccbad69b852985df