def get_parser(self, prog_name): parser = super(ContainerMove, self).get_parser(prog_name) ContainerCommandMixin.patch_parser(self, parser) parser.add_argument( '--src', metavar='<service_id>', required=True, help='ID of the source service', ) parser.add_argument( '--dst', metavar='<service_id>', help='ID of the destination service', ) return parser
def get_parser(self, prog_name): parser = super(ContainerRepair, self).get_parser(prog_name) ContainerCommandMixin.patch_parser(self, parser) parser.add_argument('--no-rebuild-bases', action='store_false', dest='rebuild_bases', help='Don\'t rebuild the missing, lost bases. ' '(default=%s)' % (not self.tool_class.DEFAULT_REBUILD_BASES)) parser.add_argument('--no-sync-bases', action='store_false', dest='sync_bases', help='Don\'t synchronize its bases. ' '(default=%s)' % (not self.tool_class.DEFAULT_SYNC_BASES)) parser.add_argument( '--no-update-account', action='store_false', dest='update_account', help='Don\'t update the counters for the account service. ' '(default=%s)' % (not self.tool_class.DEFAULT_UPDATE_ACCOUNT)) return parser
def get_parser(self, prog_name): parser = super(ContainerVacuum, self).get_parser(prog_name) ContainerCommandMixin.patch_parser(self, parser) return parser
def get_parser(self, prog_name): parser = super(ContainerMove, self).get_parser(prog_name) ContainerCommandMixin.patch_parser(self, parser) ItemMoveCommandMixin.patch_parser(self, parser) return parser