June 2019
Beginner to intermediate
770 pages
19h 24m
English
Previously, we noted one common approach to supporting multiple features. Some applications use multiple top-level main programs in separate .py script files. If we do this, then combining commands from separate files forces us to write a shell script. It doesn't seem optimal to introduce yet another tool and another language to do programming in-the-large (PITL).
A slightly more flexible alternative to creating separate script files is using a positional parameter to select a specific top-level Command object. For our example, we'd like to select either the simulation or the analysis command. To do this, we would add a parameter to the command-line argument parsing the following code: ...
Read now
Unlock full access