Changeset 831


Ignore:
Timestamp:
04/03/11 23:09:09 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites: added help message to launcher script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/run.py

    r828 r831  
    1919from optparse import OptionParser 
    2020 
    21 parser = OptionParser(description='PARPG Launcher Script') 
     21usage = ('usage: %prog [options] settings_path [system_path user_path]\n\n' 
     22         'The settings_path argument is mandatory and is the directory in \n' 
     23         'which your system.cfg file is located. Optionally, you may \n' 
     24         'specify where data files are located (system_path), and where \n' 
     25         'the user settings and data files should be saved to (user_path)') 
     26 
     27parser = OptionParser(description='PARPG Launcher Script', usage=usage) 
    2228parser.add_option('-f', '--logfile', 
    2329                  help='Name of log file to save to') 
     
    2935 
    3036if not args: 
    31     #TODO: display usage message 
     37    parser.print_help() 
    3238    sys.exit(1) 
    3339             
Note: See TracChangeset for help on using the changeset viewer.