Created
October 3, 2016 12:41
-
-
Save d34dh0r53/138ea3770a819bd780ac4d021f6b5c2e to your computer and use it in GitHub Desktop.
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
import argparse | |
def function_a(arg_a, arg_b=args.arg_b): | |
do_something | |
return something | |
def function_b(arg_a): | |
function_a(arg_a) | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--arg_a", default="default_a") | |
parser.add_argument("--arg_b", default="default_b") | |
args = parser.parse_args() | |
function_b(arg_a) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment