Changeset 3276

Show
Ignore:
Timestamp:
01/26/12 21:07:01 (4 months ago)
Author:
erkn
Message:

Show usage, when missing instrument file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/src/mcrun2/main.py

    r3274 r3276  
    231231    # Parse options 
    232232    (options, args) = parser.parse_args() 
    233     parser.destroy() 
    234233    expand_options(options) 
    235234 
     
    239238    # Extract instrument and parameters 
    240239    if len(args) == 0: 
    241         raise OptionValueError('No instrument file specified.') 
     240        print parser.get_usage() 
     241        #raise OptionValueError('No instrument file specified.') 
     242        parser.exit() 
    242243    options.instr = args[0] 
    243244    options.params = args[1:]