diff --git a/py/program.py b/py/program.py index 50dd1f4..a6ef82d 100755 --- a/py/program.py +++ b/py/program.py @@ -5,6 +5,8 @@ PROGNAME = "__FULLNAME__" PROGENV = "__PROJECTNAME__".upper() VERSION = CVSID.split()[2] +PROGVER = PROGNAME + " " + VERSION + " - __DESCRIPTION__" + ##### # Copyright Information @@ -12,8 +14,11 @@ COPYRIGHT = "__COPYRIGHT__" +##### +# List Of All Legal Options - Update This When You Add More!!!! +##### -PROGVER = PROGNAME + " " + VERSION + " - __DESCRIPTION__" +OPTIONSLIST = '-f:hv' #----------------------------------------------------------# @@ -230,11 +235,11 @@ OPTIONS = envopt.split() + OPTIONS try: - opts, args = getopt.getopt(OPTIONS, '-f:hv') + opts, args = getopt.getopt(OPTIONS, OPTIONSLIST) -except getopt.GetoptError as e: +except getopt.GetoptError, (errmsg, badarg): - ErrorMsg(eBADARG % e.args[0]) + ErrorMsg(eBADARG % errmsg) sys.exit(1) for opt, val in opts: