Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
options.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include "config.h"
6
12struct Options {
13 std::string configPath;
16 bool openBrowser{false};
17 bool updateCert{false};
18 std::string certUrl;
19 std::string keyUrl;
20};
21
35Options parseOptions(int argc, char** argv);
Options parseOptions(int argc, char **argv)
Parse argv and load the config file into an Options value.
Definition options.cc:20
The whole config file. Top-level keys map to these members.
Definition config.h:100
Everything resolved from the command line and config file for one run.
Definition options.h:12
Config config
Settings: built-in defaults overlaid by the config file.
Definition options.h:15
std::string certUrl
–cert-url (CLI-only; defaults to the rolling release).
Definition options.h:18
bool updateCert
Fetch a fresh cert/key, install them, and exit (–update-cert).
Definition options.h:17
std::string configPath
Definition options.h:13
bool openBrowser
Open the PWA in the default browser on start (–open).
Definition options.h:16
std::string keyUrl
–key-url (CLI-only; defaults to the rolling release).
Definition options.h:19