Last active
August 29, 2015 14:20
-
-
Save toshihikoyanase/5a17888d922f882a4603 to your computer and use it in GitHub Desktop.
A template for small scripts in python 3
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
def run(): | |
args = parse_args() | |
print("Input path: {0}".format(args.input_path)) | |
def parse_args(): | |
parser = argparse.ArgumentParser(description='A template for small scripts in puthon3.') | |
parser.add_argument('input_path') | |
return parser.parse_args() | |
if __name__ == '__main__': | |
run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment