Making WordPress.org

Opened 4 months ago

Last modified 4 months ago

#7397 new defect (bug)

Issue displaying argument options in CLI docs page

Reported by: rabmalin's profile rabmalin Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

In the docs page of WP CLI commands, value of --format and similar are displaying like this

Render output in a particular format. -– default: table options: – table – csv – ids – json – count – yaml -–

Eg: https://developer.wordpress.org/cli/commands/post/list/

It would be better if we display those options in a list or something.

Attachments (3)

Screen Shot 2024-01-05 at 4.15.13 PM.png (19.8 KB) - added by rabmalin 4 months ago.
Screenshot 2024-01-08 at 11.26.22 am.png (220.8 KB) - added by dd32 4 months ago.
Screenshot 2024-01-08 at 11.28.17 am.png (221.4 KB) - added by dd32 4 months ago.

Download all attachments as: .zip

Change History (4)

#1 @dd32
4 months ago

The underlying data has line breaks here, so it's probably more a case of respecting line breaks and/or adding custom styling for the --- ... --- format.

Note: See TracTickets for help on using tickets.