- def main (self):
- parser=OptionParser()
- parser.add_option ('-r',"--reboot",action='store_true',dest='reboot',default=False,
- help='reboot mode (use shutdown -r)')
- parser.add_option ('-s',"--soft",action='store_true',dest='soft',default=False,
- help='soft mode for reboot (terminates processes)')
- parser.add_option ('-t',"--testbox",action='store_true',dest='testbox',default=False,
- help='add test box')
- parser.add_option ('-b',"--build",action='store_true',dest='builds',default=False,
- help='add build boxes')
- parser.add_option ('-p',"--plc",action='store_true',dest='plcs',default=False,
- help='add plc boxes')
- parser.add_option ('-q',"--qemu",action='store_true',dest='qemus',default=False,
- help='add qemu boxes')
- parser.add_option ('-a',"--all",action='store_true',dest='all',default=False,
- help='address all known boxes, like -b -t -p -q')
- parser.add_option ('-v',"--verbose",action='store_true',dest='verbose',default=False,
- help='verbose mode')
- parser.add_option ('-n',"--dry_run",action='store_true',dest='dry_run',default=False,
- help='dry run mode')
- (self.options,args)=parser.parse_args()
-
- boxes=args
+ def main(self):
+ parser = OptionParser()
+ parser.add_option('-r', "--reboot", action='store_true', dest='reboot', default=False,
+ help='reboot mode (use shutdown -r)')
+ parser.add_option('-s', "--soft", action='store_true', dest='soft', default=False,
+ help='soft mode for reboot (terminates processes)')
+ parser.add_option('-t', "--testbox", action='store_true', dest='testbox', default=False,
+ help='add test box')
+ parser.add_option('-b', "--build", action='store_true', dest='builds', default=False,
+ help='add build boxes')
+ parser.add_option('-p', "--plc", action='store_true', dest='plcs', default=False,
+ help='add plc boxes')
+ parser.add_option('-q', "--qemu", action='store_true', dest='qemus', default=False,
+ help='add qemu boxes')
+ parser.add_option('-a', "--all", action='store_true', dest='all', default=False,
+ help='address all known boxes, like -b -t -p -q')
+ parser.add_option('-v', "--verbose", action='store_true', dest='verbose', default=False,
+ help='verbose mode')
+ parser.add_option('-n', "--dry_run", action='store_true', dest='dry_run', default=False,
+ help='dry run mode')
+ (self.options, args) = parser.parse_args()
+
+ boxes = args