diff --git a/py/program.py b/py/program.py index f186f3f..29e31bc 100755 --- a/py/program.py +++ b/py/program.py @@ -103,8 +103,8 @@ # Make the options list more human readable optionslist = OPTIONSLIST.replace(':', ' arg -').strip() -if optionslist[-1] = '-': - optionslist = optionslist[:-1] +if optionslist[-1] == '-': + optionslist = optionslist[:-1].strip() uTable = [PROGVER, "usage: " + PROGNAME + " [%s]" % optionslist,