Skip to content

Commit 0270bce

Browse files
committed
Add more information in :debug options
Show docstring (which contains type information) and whether the option is hidden. Fixes #5393
1 parent 3880317 commit 0270bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,8 @@ const CommandDesc debug_cmd = {
16471647
{
16481648
write_to_debug_buffer("Options:");
16491649
for (auto& option : context.options().flatten_options())
1650-
write_to_debug_buffer(format(" * {}: {}", option->name(),
1650+
write_to_debug_buffer(format(" * {} \"{}\"{}: {}", option->name(), option->docstring(),
1651+
option->flags() & OptionFlags::Hidden ? " (hidden)" : "",
16511652
option->get_as_string(Quoting::Kakoune)));
16521653
}
16531654
else if (parser[0] == "memory")

0 commit comments

Comments
 (0)