SA Bugzilla – Bug 6569
[PATCH r1088422 2011-04-03] spamd.1 -- Order items alphabetically
Last modified: 2011-11-05 22:41:16 UTC
Created attachment 4862 [details] Oder alphabetically Cf. http://bugs.debian.org/620762 The following patch: - Orders items alphabetically - Removes extra EOL whitespaces from the moved items. This helps searching in natural A-Z order. Compare to book indexes where one reads from top to bottom; and programs like cp(1), mv(1), ssh(1) etc.
Created attachment 4863 [details] Order alphabetically (POD::OPTIONS) 2nd part
Jari, I appreciate the idea and the effort you put into this but the risk to reward is so low for a documentation change. Double-checking that this patch isn't losing data seems really hard. Additionally, most, if not all programs I'm familiar with try and group options more so than go for alphabetical ordering. In the end, especially for an administrator level tool such as spamd, this seems unnecessary. But don't let me discourage you. Would love to have you work on other items with more of an impact. I would very much like to commit this. I just can't justify the hour+ of work to verify it. Regards, KAM
If you could reconsider it a little. I'm 100% sure that everything has been preserved and no information has been lost. Many times when reading commands in the Internet: command -a -x -u -z -y .... It appears that the easiest way to find the information from manpage is the alphabetical listing where options appear in predictable manner, like a book index. Manpages are most of the time used for a reference material. Jari
In line with comment 2, I am also strongly in favor of (logically) grouping the options available. In cases like mentioned in comment 3, what I find much more helpful than alphabetical order is to search the man page. This depends on your 'man' command's pager setting, but usually should be 'less'. Searching for a word or option also will quickly show related options referring to the switch in question.
FWIW, some CLI magic reveals at least one documentation issue fixed in patch attachment 4862 [details]. - -r pidfile, --pidfile Write the process id to pidfile + -r file, --pidfile=file Write the process id to pidfile The long option is missing the argument. Though the patch also missed to adjust the description and use 'file' instead of 'pidfile'. The second patch is just too scary to review without spending quite some time manually verifying. And it borks the shebang in line 1.