Changeset 23 for trunk


Ignore:
Timestamp:
11/29/02 13:09:45 (20 years ago)
Author:
sscpbas
Message:

pxeconfig:

Added version support. (-v, --version)

Location:
trunk/pxeconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/changelog

    r20 r23  
    1 Always edit this file when changes are commited:
     1Always edit this file when changes are commited::
    22
    33$Log: changelog,v $
     4Revision 1.19  2002/11/29 12:09:45  sscpbas
     5pxeconfig:
     6  Added version support. (-v, --version)
     7
    48Revision 1.18  2002/09/30 09:22:02  sscpbas
    59pxeconfig:
  • trunk/pxeconfig/pxeconfig

    r20 r23  
    77#
    88# CVS info
    9 #  $Date: 2002/09/30 09:22:02 $
    10 #  $Revision: 1.11 $
     9#  $Date: 2002/11/29 12:09:45 $
     10#  $Revision: 1.12 $
    1111#
    1212# Copyright (C) 2002
     
    3131Usage: pxeconfig
    3232 [-d|--directory <pxe_config_dir>]
     33 [-v|--version]
    3334 [-n|--net <C-net> -s|--start <number> -e|--end <number> -f|--file <filename>]
    3435
     
    7273START='start'
    7374END='end'
    74 
    75 SHORTOPT_LIST='hd:n:s:e:f:'
    76 LONGOPT_LIST=['help', 'directory=', 'net=', 'start=', 'end=', 'file=']
     75VERSION='0.4.1'
     76
     77SHORTOPT_LIST='hvd:n:s:e:f:'
     78LONGOPT_LIST=['help', 'version', 'directory=', 'net=', 'start=', 'end=', 'file=']
    7779
    7880def select_pxe_configfile():
     
    268270      binfo[FILENAME] = value
    269271
     272    elif opt in ['-v', '--version']:
     273      print VERSION
     274      sys.exit(0)
     275
    270276    elif opt in ['-h', '--help']:
    271277      print __doc__
Note: See TracChangeset for help on using the changeset viewer.