diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index 9e5a42821777d..0b63731815c72 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -830,10 +830,8 @@ def helpstr(self): """ if self.t == CephBool: chunk = "--{0}".format(self.name.replace("_", "-")) - elif self.t == CephPrefix: + elif self.t == CephPrefix or self.t == CephChoices: chunk = str(self.instance) - elif self.t == CephChoices: - chunk = f'--{self.name} {{{str(self.instance)}}}' elif self.t == CephOsdName: # it just so happens all CephOsdName commands are named 'id' anyway, # so is perfect.