Changeset 158 for trunk/src


Ignore:
Timestamp:
04/27/09 12:16:05 (15 years ago)
Author:
bas
Message:

-V/--version did not print version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pxeconfig.py.in

    r156 r158  
    7272START        = 'start'
    7373END          = 'end'
    74 VERSION      = '3.0.2'
     74VERSION      = '3.0.3'
    7575
    7676class PxeConfig(Exception):
     
    288288        options, args = parser.parse_args()
    289289
     290        if options.VERSION:
     291                print VERSION
     292                sys.exit(0)
     293
    290294        if not args:
    291295                parser.print_help()
    292296                sys.exit(0)
    293        
    294         if options.VERSION:
    295                 print VERSION
    296                 sys.exit(0)
    297297
    298298        # debug can be specified by the command line or options file
Note: See TracChangeset for help on using the changeset viewer.