FAQ:Can I pass command-line options to an algorithm?
Jump to navigation Jump to search
|Offline Documentation: [Offline Category] [FAQ] [Howto] [Reference] [Manual]|
|This article is part |
of the Offline Documentation
Sort answer is yes and no. You can pass command line options to a Job Option Module (JOM) and then have the JOM set properties on the C++ algorithm or directly set values / call methods on a Python algorithm.
An example JOM that does this is DetSim.Opts. It happens to use Python's optparse module but you can just as well directly parse the args if they are simple enough.
See this FAQ for info on how to write a JOM that takes command line options.
|Offline Software Documentation: [Offline Categories] [FAQ] [Offline Faq Category]|