Changeset 20
- Timestamp:
- 09/30/02 11:22:02 (20 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/changelog
r19 r20 1 Always edit this file when changes are commited: :1 Always edit this file when changes are commited: 2 2 3 3 $Log: changelog,v $ 4 Revision 1.18 2002/09/30 09:22:02 sscpbas 5 pxeconfig: 6 Changed some text and removed some obselete code. 7 4 8 Revision 1.17 2002/09/27 14:47:36 sscpbas 5 9 pxeconfig: -
trunk/pxeconfig/pxeconfig
r19 r20 7 7 # 8 8 # CVS info 9 # $Date: 2002/09/ 27 14:47:36$10 # $Revision: 1.1 0$9 # $Date: 2002/09/30 09:22:02 $ 10 # $Revision: 1.11 $ 11 11 # 12 12 # Copyright (C) 2002 … … 73 73 END='end' 74 74 75 SHORTOPT_LIST=' d:n:s:e:f:'76 LONGOPT_LIST=[' directory=', 'net=', 'start=', 'end=', 'file=']75 SHORTOPT_LIST='hd:n:s:e:f:' 76 LONGOPT_LIST=['help', 'directory=', 'net=', 'start=', 'end=', 'file='] 77 77 78 78 def select_pxe_configfile(): … … 220 220 def check_cmd_line(binfo): 221 221 if len(binfo.keys()) != 4: 222 print 'Not enough arguments to create the links'223 222 print __doc__ 223 print 'Not enough arguments to create the links!!' 224 224 sys.exit(1) 225 225 … … 232 232 def check_args(argv, binfo): 233 233 """ 234 command line option:235 -d|--directory <dir>236 Where <dir> is the directory where the pxe config files reside.234 This function parses the command line options: 235 argv : a list of command line options. 236 binfo: returning a dict with the netinfo. if used non-interactively 237 237 """ 238 238 global PXE_CONF_DIR … … 241 241 opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST) 242 242 except getopt.error, detail: 243 print check_args.__doc__243 print __doc__ 244 244 print detail 245 245 sys.exit(1) … … 268 268 binfo[FILENAME] = value 269 269 270 elif opt in ['-h', '--help']: 271 print __doc__ 272 sys.exit(0) 273 270 274 271 275 def main():
Note: See TracChangeset
for help on using the changeset viewer.