changeset 181:42142c5223ce

minor error management addition
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 23 Nov 2011 15:57:42 -0500
parents 3a4eef37384f
children d3f6de6c3918
files python/utils.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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]