'Command handler for the mbsync function.'

def func(self, lib, opts, args):

    move = ui.should_move(opts.move)
    pretend = opts.pretend
    write = ui.should_write(opts.write)
    query = ui.decargs(args)
    self.singletons(lib, query, move, pretend, write)
    self.albums(lib, query, move, pretend, write)
