Skip to content

Commit

Permalink
pybind/ceph_argparse: improve helpstr for CephChoices
Browse files Browse the repository at this point in the history
Include the field name

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
liewegas committed May 24, 2021
1 parent d803f74 commit a2234fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/ceph_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def helpstr(self):
elif self.t == CephPrefix:
chunk = str(self.instance)
elif self.t == CephChoices:
chunk = str(self.instance)
chunk = f'<{self.name}:{self.instance}>'
elif self.t == CephOsdName:
# it just so happens all CephOsdName commands are named 'id' anyway,
# so <id|osd.id> is perfect.
Expand Down

0 comments on commit a2234fe

Please sign in to comment.