Created
June 22, 2013 16:49
-
-
Save henryiii/5841546 to your computer and use it in GitHub Desktop.
Python Script Template, copy useful parts.
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 | |
import argparse | |
import os | |
DIR = os.path.realpath(__file__) | |
parser = argparse.ArgumentParser(description='Send files to web server') | |
parser.add_argument('-n', '--nochange', | |
help='make a dry run, don\'t send anything', | |
action='store_const', | |
const='n', | |
default='') | |
args = parser.parse_args() | |
os.chdir(DIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment