Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag to suppress processing command line args #136

Closed

Conversation

espakm
Copy link
Contributor

@espakm espakm commented Jul 22, 2016

The flag is called 'applicationArgs.processByMITK'. If the flag is not
defined or it evaluates to 'true', the arguments are processed by MITK,
just like until now. It is possible, however, that custom applications
set this flag to 'false', so that they can introduce new switches or
options. (They could remove the dependency on the org.mitk.gui.qt.ext
module, but then they could not reuse other classes from it.)

To suppress processing the command line arguments, you need to put
this line into the main cpp file of your application:

myApp.setProperty("applicationArgs.processByMITK", false);

where 'myApp' is typically an mitk::BaseApplication instance.

Signed-off-by: Miklos Espak m.espak@ucl.ac.uk

The flag is called 'applicationArgs.processByMITK'. If the flag is not
defined or it evaluates to 'true', the arguments are processed by MITK,
just like until now. It is possible, however, that custom applications
set this flag to 'false', so that they can introduce new switches or
options. (They could remove the dependency on the org.mitk.gui.qt.ext
module, but then they could not reuse other classes from it.)

To suppress processing the command line arguments, you need to put
this line into the main cpp file of your application:

  myApp.setProperty("applicationArgs.processByMITK", false);

where 'myApp' is typically an mitk::BaseApplication instance.

Signed-off-by: Miklos Espak <m.espak@ucl.ac.uk>
@espakm espakm closed this Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant