original_docstring: 
      *Optional but needed it you want to run the model from the command line*
      
      Perform command line execution of the model. This example uses the getopt
      module to parse the command line options.
      
      The user can set the caseName, the runDir, the timestep and the configfile.
      
docstring: Optional but needed it you want to run the model from the command line
  Perform command line execution of the model. This example uses the getopt
  module to parse the command line options.
  
  The user can set the caseName, the runDir, the timestep and the configfile.
docstring_tokens: Optional but needed it you want to run the model from the command line Perform command line execution of the model . This example uses the getopt module to parse the command line options . The user can set the caseName the runDir the timestep and the configfile .
code: def main(argv=None):  
      """
      *Optional but needed it you want to run the model from the command line*
      
      Perform command line execution of the model. This example uses the getopt
      module to parse the command line options.
      
      The user can set the caseName, the runDir, the timestep and the configfile.
      """      
      global multpars
      caseName = "default"
      runId = "run_default"
      configfile="wflow_sceleton.ini"
      _lastTimeStep = 10
      _firstTimeStep = 1
      timestepsecs=86400
      wflow_cloneMap = 'wflow_subcatch.map'
      
      # This allows us to use the model both on the command line and to call 
      # the model usinge main function from another python script.
      
      if argv is None:
          argv = sys.argv[1:]
          if len(argv) == 0:
              usage()
              return     
  
      opts, args = getopt.getopt(argv, 'C:S:T:c:s:R:')
      
      for o, a in opts:
          if o == '-C': caseName = a
          if o == '-R': runId = a
          if o == '-c': configfile = a
          if o == '-s': timestepsecs = int(a)
          if o == '-T': _lastTimeStep=int(a)
          if o == '-S': _firstTimeStep=int(a)
          
      if (len(opts) <=1):
          usage()
          
      myModel = WflowModel(wflow_cloneMap, caseName,runId,configfile)
      dynModelFw = wf_DynamicFramework(myModel, _lastTimeStep,firstTimestep=_firstTimeStep)
      dynModelFw.createRunId(NoOverWrite=False,level=logging.DEBUG)    
      dynModelFw._runInitial()
      dynModelFw._runResume()
      dynModelFw._runDynamic(0,0)
      dynModelFw._runSuspend()
      dynModelFw._wf_shutdown()
code_tokens: def main ( argv = None ) : global multpars caseName = "default" runId = "run_default" configfile = "wflow_sceleton.ini" _lastTimeStep = 10 _firstTimeStep = 1 timestepsecs = 86400 wflow_cloneMap = 'wflow_subcatch.map' if argv is None : argv = sys . argv [ 1 : ] if len ( argv ) == 0 : usage ( ) return opts , args = getopt . getopt ( argv , 'C:S:T:c:s:R:' ) for o , a in opts : if o == '-C' : caseName = a if o == '-R' : runId = a if o == '-c' : configfile = a if o == '-s' : timestepsecs = int ( a ) if o == '-T' : _lastTimeStep = int ( a ) if o == '-S' : _firstTimeStep = int ( a ) if ( len ( opts ) <= 1 ) : usage ( ) myModel = WflowModel ( wflow_cloneMap , caseName , runId , configfile ) dynModelFw = wf_DynamicFramework ( myModel , _lastTimeStep , firstTimestep = _firstTimeStep ) dynModelFw . createRunId ( NoOverWrite = False , level = logging . DEBUG ) dynModelFw . _runInitial ( ) dynModelFw . _runResume ( ) dynModelFw . _runDynamic ( 0 , 0 ) dynModelFw . _runSuspend ( ) dynModelFw . _wf_shutdown ( )
short_docstring: Optional but needed it you want to run the model from the command line
  Perform command line execution of the model.
short_docstring_tokens: Optional but needed it you want to run the model from the command line Perform command line execution of the model .
comment: """
      *Optional but needed it you want to run the model from the command line*
      
      Perform command line execution of the model. This example uses the getopt
      module to parse the command line options.
      
      The user can set the caseName, the runDir, the timestep and the configfile.
      """$SEP$# This allows us to use the model both on the command line and to call $SEP$# the model usinge main function from another python script.