Skip to content

Instantly share code, notes, and snippets.

@Makman2
Created August 13, 2018 20:16
Show Gist options
  • Save Makman2/51111934e381ccf7439cb195be57d31c to your computer and use it in GitHub Desktop.
Save Makman2/51111934e381ccf7439cb195be57d31c to your computer and use it in GitHub Desktop.
Getting started Python main file
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