mirror of https://github.com/oxen-io/lokinet
testnet fixes
-- add ability to pass .ini path without --config flag -- -r flag runs lokinet in router mode
This commit is contained in:
parent
ea740ffd79
commit
b31a266be8
|
@ -377,7 +377,7 @@ namespace
|
|||
cli.add_flag("-f,--force", options.overwrite, "Force writing config even if file exists");
|
||||
|
||||
// options: string
|
||||
cli.add_option("--config", options.configPath, "Path to lokinet.ini configuration file")
|
||||
cli.add_option("config,--config", options.configPath, "Path to lokinet.ini configuration file")
|
||||
->capture_default_str();
|
||||
|
||||
if constexpr (llarp::platform::is_windows)
|
||||
|
@ -419,6 +419,8 @@ namespace
|
|||
}
|
||||
}
|
||||
|
||||
opts.isSNode = options.router;
|
||||
|
||||
if (options.generate)
|
||||
{
|
||||
options.configOnly = true;
|
||||
|
|
Loading…
Reference in New Issue