Show
Ignore:
Timestamp:
02/14/07 13:32:03 (2 years ago)
Author:
patrick
Message:

MFT [rev 19806]: Replaced hard-coded exit values with symbolic identifiers.

Added an exit status for an invalid command line argument.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/buildwin32.py

    r19813 r19814  
    4949EXIT_STATUS_INVALID_PATH      = 4 
    5050EXIT_STATUS_MISSING_REQ_VALUE = 5 
     51EXIT_STATUS_INVALID_ARGUMENT  = 6 
    5152 
    5253gJugglerDir      = os.path.dirname(os.path.abspath(sys.argv[0])) 
     
    20392040         except OSError, osEx: 
    20402041            print "Could not execute %s: %s" % (cmd, osEx) 
    2041             sys.exit(3
     2042            sys.exit(EXIT_STATUS_MSVS_START_ERROR
    20422043      else: 
    20432044         cmd = devenv_cmd_no_exe + ' ' + solution_file 
     
    20842085   except getopt.GetoptError: 
    20852086      usage() 
    2086       sys.exit(4
     2087      sys.exit(EXIT_STATUS_INVALID_ARGUMENT
    20872088 
    20882089   global gOptionsFileName 
     
    21602161      elif exitEx.code == EXIT_STATUS_MISSING_REQ_VALUE: 
    21612162         status = 'required value not given' 
     2163      elif exitEx.code == EXIT_STATUS_INVALID_ARGUMENT: 
     2164         status = 'invalid command line argument' 
    21622165      else: 
    21632166         status = 'error encountered'