Date: Fri, 31 Aug 2018 21:02:04 +0200 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: Yuri Pankov <yuripv@yuripv.net> Cc: freebsd-doc <freebsd-doc@freebsd.org> Subject: Re: option sort order in usage/man pages/documentation Message-ID: <20180831210204.734cc346@e5500> In-Reply-To: <9e434314-485d-6dd2-c7af-17ca0c49313c@yuripv.net>
index | next in thread | previous in thread | raw e-mail
Hello, On Thu, 30 Aug 2018 10:50:46 +0300 Yuri Pankov <yuripv@yuripv.net> wrote: >I'm working on some man page updates, and, thinking about consistency, >been wondering if there's any policy set on the order of options that >one should use in usage messages/man pages/other documentation, i.e. is >it 'ABCabc', 'AaBbCc', or 'aAbBcC' (or anything else really, I hope >'unsorted' isn't possible answer here). FWIW, I've started creating a wiki page with some style guides for manpages. It'd be nice to move it to something like style.mdoc(5) later on: https://wiki.freebsd.org/MateuszPiotrowski/MdocStyleGuide At the moment my notes are focused mostly on the mdoc syntax. It would be great to add some guidelines for things like the sorting order. Apart from the order of 'ABCabc' we should also think about the order of long options ("--libxo") and command modifiers, which are sometimes included in the same list (although usually put at the end of it). Best, Mateuszhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180831210204.734cc346>
