|
Motion Master 6.0.0-alpha.50
Next-generation motion control software
|
#include "options.h"#include <spdlog/spdlog.h>#include <CLI/CLI.hpp>#include <cstdlib>#include <filesystem>#include <fstream>#include <iostream>#include <nlohmann/json.hpp>#include <string>#include <utility>#include "cert_updater.h"#include "comm/base.h"#include "config.h"#include "core/platform.h"#include "core/version.h"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.