|
Motion Master 6.0.0-alpha.50
Next-generation motion control software
|
Go to the source code of this file.
Classes | |
| struct | Options |
| Everything resolved from the command line and config file for one run. More... | |
Functions | |
| Options | parseOptions (int argc, char **argv) |
| Parse argv and load the config file into an Options value. | |
| Options parseOptions | ( | int | argc, |
| char ** | argv | ||
| ) |
Parse argv and load the config file into an Options value.
Loads a JSONC config file (comments allowed) into Options::config, layering it over the built-in defaults; the settings themselves have no command-line flags — the CLI carries only actions and cert-fetch sources. The config file is either the explicit --config path or, absent that, a motion-master.jsonc auto-discovered next to the executable (–config wins over it). On –list-adapters the adapters are printed and the process exits 0.