File:  [Local Repository] / templates / template.py
Revision 1.4: download - view: text, annotated - select for diffs
Mon Jul 27 20:54:52 2015 UTC (9 years, 5 months ago) by nick
Branches: MAIN
CVS tags: HEAD
Added UTF encoding line.

#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
+------------------------------------------------------------------------------
|
|   Copyright Nicholas DeClario 2013
|   Nicholas DeClario <nick@demandred.dyndns.org>
|   March 2013
|       $Id: template.py,v 1.4 2015/07/27 20:54:52 nick Exp $
|
+------------------------------------------------------------------------------

"""
import os
import sys
import argparse

"""
 fetchOptions()

    Grab our command line arguments and toss them in to a hash
"""


def fetchOptions():
    parse = argparse.ArgumentParser()
    parse.add_argument('-m', '--man', help='Display the man page', \
                       dest='man', default=False, action='store_true')
    parse.add_argument('-t', '--test', help='Test Argument', dest='test')

    return parse.parse_args()

"""
 The magic starts here
"""


def main():

    if opts.man:
        displayMan()


if __name__ == '__main__':
    opts = fetchOptions()
    main()

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>