Created
September 17, 2014 10:47
-
-
Save amitkot/a1570ff356cee9a77dcc to your computer and use it in GitHub Desktop.
Script for Modules and Packages lab - Python Course 2014
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
from optparse import OptionParser | |
def main(): | |
parser = OptionParser() | |
parser.add_option("-f", "--file", dest="filename", | |
help="write report to FILE", metavar="FILE") | |
# ADD YOUR OPTION HERE: | |
(options, args) = parser.parse_args() | |
print 'options are', options | |
print 'args are', args | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment