Hi Thomas.
The parsing of arguments is right now not extensible in the sense that
extensions can define their *own* arguments. However, there is a very
simple and standardized mechanism to modify the original
OptionsParser:
- modify the file /abc/src/abc/main/options/options.xml adding your
own arguments
- run the ant target options-code
This will generate OptionsParser for the arguments stated in options.xml.
Eric
2008/9/1 Thomas Pawlitzki <mailinglist_at_pawlitzki.name>:
> Hello NG,
>
> in my compiler extension I want to differentiate between to modes of
> my extension.
>
> Therefore I want to define my own compiler argument like -main-class
>
> I imagine something like
> -mode=<MyMode>
>
> I looked into the abc sources and found the OptionParser. But I found
> no possibility to adapt it to my needs.
> How can I integrate my own (subclass of) OptionParser into the abc?
>
> Thanks a lot.
>
> So long
> Thomas
>
>
-- Eric Bodden Sable Research Group McGill University, Montréal, CanadaReceived on Mon Sep 01 2008 - 16:26:51 BST
This archive was generated by hypermail 2.2.0 : Tue Sep 02 2008 - 06:00:12 BST