User Tools

Site Tools


user-guide:advanced-groimp-arguments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user-guide:advanced-groimp-arguments [2024/05/03 16:03] TimObuser-guide:advanced-groimp-arguments [2024/07/05 15:13] (current) gaetan
Line 38: Line 38:
   - ''--headless'' this argument start GroIMP headless, i.e. without a graphical interface. Usually you also define the project to open as an argument (see 4.).   - ''--headless'' this argument start GroIMP headless, i.e. without a graphical interface. Usually you also define the project to open as an argument (see 4.).
   - ''-a api'' this argument defines which application will be started (current available application: ''imp'', ''cli'', ''api''). By default GroIMP starts with ''imp''.   - ''-a api'' this argument defines which application will be started (current available application: ''imp'', ''cli'', ''api''). By default GroIMP starts with ''imp''.
 +  - ''-p /path/to/a/directory/'' link a directory to the list of loaded plugins. 
   - ''path/to/a/model.gsz'' this argument **requires** to be used last. It gives a model to be opened after start.   - ''path/to/a/model.gsz'' this argument **requires** to be used last. It gives a model to be opened after start.
 +
 +
 +See more:
 +  * [[:user-guide:command-line-arguments|All command line arguments]]
  
 == Additional model specific parameters == == Additional model specific parameters ==
Line 44: Line 49:
 It is possible to forward parameters from the command line to the GroIMP simulation using additional parameters beginning with an capital X. It is possible to forward parameters from the command line to the GroIMP simulation using additional parameters beginning with an capital X.
 so for a variable called number with the value 5 the additional parameter would be ''-Xnumber=5''. This value can than in the simulation be recalled by ''Main.getProperty("number")''  so for a variable called number with the value 5 the additional parameter would be ''-Xnumber=5''. This value can than in the simulation be recalled by ''Main.getProperty("number")'' 
 +
 A tutorial for this can be found [[:Tutorials:xparametric-model|here]] A tutorial for this can be found [[:Tutorials:xparametric-model|here]]
  
 **Note: if you run GroIMP from Eclipse, the GroIMP arguments can be set in the Run Configuration...>x() = Arguments>Program arguments** **Note: if you run GroIMP from Eclipse, the GroIMP arguments can be set in the Run Configuration...>x() = Arguments>Program arguments**
  
user-guide/advanced-groimp-arguments.1714745011.txt.gz · Last modified: 2024/05/03 16:03 by TimOb