def __call__(self, options): if 0 != os.getuid(): raise CommandError('init command must be run as root') Repository.init_repo(options.repo)