Created
August 13, 2018 20:16
-
-
Save Makman2/51111934e381ccf7439cb195be57d31c to your computer and use it in GitHub Desktop.
Getting started Python main file
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
from argparse import ArgumentParser, Namespace | |
import sys | |
def main(args: Namespace): | |
pass | |
def create_argparser() -> ArgumentParser: | |
parser = ArgumentParser() | |
return parser | |
if __name__ == '__main__': | |
sys.exit(main(create_argparser().parse_args())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment