-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify setting arbitrary parameters from the command line
Object::setParameter(name, content, unit) is made recursive: if name contains "::" (e.g. Astrobj::Spectrum::Temperature), the component before the first occurence of "::" (here, "Astrobj") is interpreted as a path. A property by that name in the curent object is sought. If it is found, setParameter is called on this child object with the remainder of the string (here "Spectrum::Temperature") and the other parameters unchanged (content and unit). On the command-line, replace the bunch of --TYPE-parameter options with a single --parameter option, which applies to the root (Scenery) level and uses this facility to access members in the Astrobj, Screen etc.
- Loading branch information
Showing
4 changed files
with
83 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters