'Parse the commandline and invoke everything'

def run(self):

    (options, args) = self.__parse_cmd_options()
    if options.diagnostics:
        self.__serverdiagnostics(options)
    elif options.migrate_fmd5:
        self.__migratefmd5(options)
    elif options.mbnames_prune:
        mbnames.init(self.config, self.ui, options.dryrun)
        mbnames.prune(self.config.get('general', 'accounts'))
        mbnames.write()
    elif options.deletefolder:
        return self.__deletefolder(options)
    else:
        return self.__sync(options)
