So what i am trying to do is simple is launch a simple help dialog when i do -h.. That works fine, the issue comes when i try to do anything besides -h. what is the best practice of taking care of this. There will be many more paramters being passed just starting out with -h for now. here is my main.
if __name__ == '__main__':
#if no args are specified in command line
if len(sys.argv)<2:
print "Not enough arguments dude/dudett use -h for help"
else:
#get args
try:
parser = OptionParser()
parser.add_option("-h", "--help",
action="store_true", dest="hlpBool")
(opts, args) = parser.parse_args()
if(options.hlpBool==true):
print 'Help Statement'
#sys.exit(2)
except AttributeError as e:
print (dir(e))