Changeset 158


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

-V/--version did not print version number

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changelog

    r154 r158  
     13.0.3:
     2  * --version/-V  prints now the version info and exits
     3
    143.0.2:
    25  * If option remove is specified, then do not ask for configuration file,
  • trunk/debian/changelog

    r154 r158  
     1pxeconfig (3.0.3-1) stable; urgency=low
     2
     3  * --version/-V  prints now the version info and exits
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Mon, 27 Apr 2009 12:13:56 +0200
     6
    17pxeconfig (3.0.2-1) stable; urgency=low
    28
  • trunk/setup.py

    r156 r158  
    1313
    1414setup ( name = 'pxeconfig',
    15         version = '3.0.2',
     15        version = '3.0.3',
    1616        description = 'SARA pxeconfig utilities',
    1717        author = 'Bas van der Vlies',
  • 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.