FAQ:Can I pass command-line options to an algorithm?

From Daya Bay
Jump to navigation Jump to search
Offline Documentation: [Offline Category] [FAQ] [Howto] [Reference] [Manual]


Offline Documentation
This article is part
of the Offline Documentation
Other pages...

Offline Category
FAQ
How Tos
Reference
Manual
Getting Started
Software Installation

See also...

General Help on this Wiki


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]