diff python/utils.py @ 181:42142c5223ce

minor error management addition
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 23 Nov 2011 15:57:42 -0500
parents f03fe3d6d0c8
children c06379f25ab8
line wrap: on
line diff
--- a/python/utils.py	Tue Nov 01 00:12:33 2011 -0400
+++ b/python/utils.py	Wed Nov 23 15:57:42 2011 -0500
@@ -31,7 +31,9 @@
     optionValues = dict(optionValues)
 
     if '--help' in optionValues.keys() or '-h' in optionValues.keys():
-        print(helpMessage)
+        print(helpMessage+
+              '\n - Compulsory options: '+' '.join([opt.replace('=','') for opt in options])+
+              '\n - Non-compulsory options: '+' '.join([opt.replace('=','') for opt in optionalOptions]))
         sys.exit()
 
     missingArgument = [('--'+opt.replace('=','') in optionValues.keys()) for opt in options]