October 2018
Intermediate to advanced
420 pages
10h 26m
English
Parsing the configuration file requires three distinct parts, as shown previously in the reactivity diagram for the application:
Command-line arguments are retrieved with the argv driver of the cyclotron-std package, as already seen with the cyclotron echo example. The application accepts only one argument, named config. The Python standard library contains a module dedicated to the parsing of arguments: argparse. Moreover, the cyclotron-std package contains a helper to use the argparse module with an observable of arguments as an input. So, all these elements can be used as ...