[code.view]

[top] / python / PyMOTW / argparse / argparse_parent_base.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2010 Doug Hellmann.  All rights reserved.
     #
     """Parent with shared options
     """
     #end_pymotw_header
     
     import argparse
     
     parser = argparse.ArgumentParser(add_help=False)
     
     parser.add_argument('--user', action="store")
     parser.add_argument('--password', action="store")
     

[top] / python / PyMOTW / argparse / argparse_parent_base.py

contact | logmethods.com