Created
February 5, 2019 16:47
-
-
Save bradyrx/a6cdbe3f307d6089e46abf885e1515e3 to your computer and use it in GitHub Desktop.
template for code using argparse
This file contains 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
import argparse | |
def main(f_in): | |
pass | |
if __name__ == '__main__': | |
ap = argparse.ArgumentParser(description=None) | |
ap.add_argument('-i', '--input', required=True, type=str) | |
args = vars(ap.parse_args()) | |
f_in = args['input'] | |
main(f_in) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment