]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
better documentation
authormkrzewic <mikolaj.krzewicki@cern.ch>
Mon, 8 Dec 2014 12:28:39 +0000 (13:28 +0100)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Mon, 8 Dec 2014 13:05:21 +0000 (14:05 +0100)
PWGPP/scripts/utilities.sh

index 5dd80cebcf861929b8bd0e69dcb1d4b005b24d82..70c150888fc397538544c783b351317437933671 100644 (file)
@@ -19,14 +19,19 @@ PWGPP_runMap="
 
 parseConfig()
 {
-  local args=("$@")
-
-  #first, check if the config file is configured
-  #is yes - source it so that other options can override it
+  #parse command line arguments, they have to be in the form
+  #  option=value
+  #they are then set in the environment
+  #
+  #optionally a config file can be specified in the arguments:
+  #  configFile=<someFile>
+  #config file sets variables: option=value
+  #command line options override config file
   #
   #recommended way of using (at the beginning of your funcion/script):
   #  if ! parseConfig "${@}"; then return; fi
   
+  local args=("$@")
   local opt=""
   
   #first check if we will need to decode spaces