#NEWLINE# def __init__( self , callback = None , options_metavar = '[<options>]' , subcommand_metavar = '<command> [<args>]...' , daemon_params = None , daemon_class = Daemon , is_worker = True , **attrs ) : #NEWLINE# #INDENT# 'Create a new DaemonCLI object.' #NEWLINE# self . daemon_params = ( daemon_params or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . daemon_class = daemon_class #NEWLINE# self . is_worker = is_worker #NEWLINE# if self . is_worker : #NEWLINE# #INDENT# self . daemon_params [ 'worker' ] = callback #NEWLINE# callback = None #NEWLINE# #UNINDENT# context_settings = { #NEWLINE# #INDENT# 'obj' : self . daemon_class ( ** self . daemon_params ) , #NEWLINE# #UNINDENT# } #NEWLINE# super ( DaemonCLI , self ) . __init__ ( callback = callback , options_metavar = options_metavar , subcommand_metavar = subcommand_metavar , context_settings = context_settings , ** attrs )