Index: wflow-py/wflow/wflow_topoflex.py =================================================================== diff -u -r9cda4f050ab505ec75d1cf9064980e9182f83aca -rebc36a6b97f3a09586461f97bf0ef371f9fb669c --- wflow-py/wflow/wflow_topoflex.py (.../wflow_topoflex.py) (revision 9cda4f050ab505ec75d1cf9064980e9182f83aca) +++ wflow-py/wflow/wflow_topoflex.py (.../wflow_topoflex.py) (revision ebc36a6b97f3a09586461f97bf0ef371f9fb669c) @@ -816,8 +816,13 @@ usage() return - opts, args = getopt.getopt(argv, 'C:S:T:Ic:s:R:F:fl:L:P:p:') + try: + opts, args = getopt.getopt(argv, 'C:S:T:Ic:s:R:F:fl:L:P:p:i:') #'XF:L:hC:Ii:v:S:T:WR:u:s:EP:p:Xx:U:fOc:l:') + except getopt.error, msg: + pcrut.usage(msg) + # opts, args = getopt.getopt(argv, 'C:S:T:Ic:s:R:F:fl:L:P:p:') + for o, a in opts: if o == '-F': runinfoFile = a @@ -865,7 +870,7 @@ right = a.split('=')[1] configset(myModel.config,'variable_change_timestep',left,right,overwrite=True) if o == '-X': configset(myModel.config, 'model', 'OverWriteInit', '1', overwrite=True) - if o == '-I': configset(myModel.config, 'model', 'reinit', '1', overwrite=True) + if o == '-I': configset(myModel.config, 'run', 'reinit', '1', overwrite=True) if o == '-i': configset(myModel.config, 'model', 'intbl', a, overwrite=True) if o == '-s': configset(myModel.config, 'model', 'timestepsecs', a, overwrite=True) if o == '-x': configset(myModel.config, 'model', 'sCatch', a, overwrite=True)