[Libreoffice] [PATCH] Cleaning and organizing of configure.in

Kevin Hunter hunteke at earlham.edu
Tue Oct 26 15:37:52 PDT 2010


At 6:18pm -0400 Tue, 26 Oct 2010, Christian Lohmaier wrote:
> I personally disagree that an alphabetically sortet list is best.
> e.g. now the font inclusion options wrt dejavu and liberation fonts
> are spread apart, build tool options are interspread the
> feature/code switches, extension-switches are mixed with core ones,
> etc.
>
> I personally don't like that part of the patch.

And butting in to the conversation, may I offer a middle of the road 
suggestion?  I find alphabetizing very helpful, both as an end user and 
as a developer.  However, you do make an excellent point that related 
options need to still be together.  Solution: argument groups.

I don't actually know this environment, but if I may point you to 
Python's Argument Parsing module for a moment, I claim that it has an 
intuitive API for just this purpose:

http://docs.python.org/library/argparse.html

Take note as well of argument groups (Section 15.4.5.3).

A thought,

Kevin


More information about the LibreOffice mailing list