def register_command(command, callback, **kwargs):
 return get_parser().add_subparser(command, parent_defaults={u'cli_command_callback': callback}, **kwargs)

def register_command ( command , callback , ** kwargs ) : return get_parser ( ) . add_subparser ( command , parent_defaults = { u'cli_command_callback' : callback } , ** kwargs )
register a callback function to be executed when flexget is launched with the given command .