#!/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>