Repository navigation
Triage scripts and port to argparse - #66
Merged
Merged
Conversation
* This was the configuation file for emailing information from a quality control loop that was never fully implemented.
* These were scratch work towards fast data that were never completed. * Added in repo fbea64f to avoid losing, since status was uncertain.
* This will ultimately allow for common argument handling. * Scripts that parse sys.argv directly are left alone for now.
dnadeau-lanl
approved these changes
Feb 9, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does a few things relating to script handling.
Some more clarity on the last part is probably in order. optparse was introduced in 2.3 or so and deprecated in 2.7, when argparse was introduced. That forced us to stay with optparse for as long as we wanted 2.6 support, even though we knew it was going away. So earlier scripts were written with optparse and often newer ones with argparse. Now that 2.6 is well in the rearview mirror, getting everything on argparse prepares us for the future.
There are a few scripts that directly parse sys.argv; they aren't changed for now.
Functionality shouldn't be changed; I did some chunk checks on every script (sometimes just primarily checking that the parsing worked) but we don't have deep testing on the scripts right now.
PR Checklist
Closes #if this PR closes the issue, or some other reference, such asSee #if it is related in some other way)