[mercury-users] getopt (was partial instantiation?)

Ondrej Bojar bojar at ufal.mff.cuni.cz
Thu Apr 15 07:20:58 AEST 2010


Hi,

as another source of inspiration, you may have a look at my getopt_tools in 
manarchive:

http://manarchive.svn.sourceforge.net/viewvc/manarchive/packages/lib_tools/src/getopt_tools.m?revision=57&view=markup

It's not exactly what you want but it still wraps all the predicates one has to 
provide in a nice and simple one, allowing also the (out, out, out, ...) mode; 
all fully instantiated of course.

Cheers, Ondrej.


Tomas By wrote:
> On Wed, April 14, 2010 06:39, Michael Day wrote:
> 
>>If no one has already mentioned it, the standard library has a "getopt"
>>module which supports short and long command line arguments, and works
>>rather well.
> 
> 
> It could be better though :)
> 
> (In the previous version of the app I had, let me see, 33 command line
> options defined using getopt, most of them being a single command that
> could not go with any of the others.)
> 
> /Tomas
> 
> 
> --------------------------------------------------------------------------
> mercury-users mailing list
> Post messages to:       mercury-users at csse.unimelb.edu.au
> Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
> Subscriptions:          mercury-users-request at csse.unimelb.edu.au
> --------------------------------------------------------------------------

-- 
Ondrej Bojar (mailto:obo at cuni.cz / bojar at ufal.mff.cuni.cz)
http://www.cuni.cz/~obo
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list