Command Line Argument ?

Submitted by nitin on Tue, 2007-01-09 03:22.

hi

i need to generalise my code for some particular application, so i want to know how should i add command line argument in the Code?

Submitted by harikrishna_gp on Tue, 2007-01-09 22:30.

Nitin,
I am not sure if I understood your question correctly or not.
Are you talking about addind more debug CLI commands for sisp in addition to the existing ones?? If this is what you are looking then its not possible. (From a user perspective)
If you are talking about integrating your own application into SISP debug CLI framework then its very much possible. Please refer to Debug infrastructure section of OpenClovis_ReferenceGuide-2.2.pdf (Section 3.5).

HTH,
Hari

Submitted by jatinder on Tue, 2007-01-09 23:36.

Nitin,

Command line arguments are added while defining the component using IDE.

Submitted by nitin on Wed, 2007-01-10 01:55.

If i do it in the IDE then everytime i need to change the value of the parameter i need to go to the model and make the changes and then generate the code an again which is a very long procedure and Secondly it doesnt make my code Generalised.

What i want is ... my application which is running as a part of ASP, to accept some command line arguments(argc, argv), and configure some of the parameters at the time of starting the SISP(without using the debug CLI).

Submitted by harikrishna_gp on Thu, 2007-01-11 23:17.

Nitin,
The result of Modeling the system using IDE is captured in the configuration files generated for AMF. These files are named as amfConfig.xml, amfDefinitions.xml. (Remember IDE has more to offer than just generating these xml files)

You may want to modify them carefully to get desired independence from IDE. However it is advisable to go thru the IDE as manual modification is error prone.

Thanks,
Hari