[m-users.] Adding a command line option

Zoltan Somogyi zs at unimelb.edu.au
Sat Jul 27 11:08:41 AEST 2013


On 27-Jul-2013, Mark Green <mgreen at brookes.ac.uk> wrote:
> What's the easiest way to add a new command line option to mmc? I have been
> trying to deal with my Erlang build problem by modifying
> compile_target_code.m to pass full paths to erlc, but I would like to make
> this behavior optional and I cannot find the part of the code that converts
> from strings on the command line to atoms that are looked up via
> lookup_bool_option.

The actual code that does that is in library/getopt.m (generic option handling)
and compiler/handle_options.m, but you probably do not need to touch any of
that. What you are after is almost certainly the options database in
compiler/options.m.

Zoltan.



More information about the users mailing list