Created
August 9, 2017 14:30
-
-
Save avilior/a19527d0b4f2badfeb052e9aa60ff23a to your computer and use it in GitHub Desktop.
argparse, logging
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import, division, print_function | |
import argparse | |
import logging | |
import sys | |
logger = logging.getLogger(__name__) | |
def main(): | |
pass | |
if __name__ == "__main__": | |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
parser = argparse.ArgumentParser(description="TODO Descriptipn") | |
parsed_args = parser.parse_args() | |
sys.exit(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment