mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-10 01:43:11 +00:00
deploy: f30639c88993829103a2782d95c2ca82c5aab6ba
This commit is contained in:
parent
0d283fe4b7
commit
035a5d04f4
@ -27,6 +27,11 @@ type
|
||||
desc: "Sets the log level."
|
||||
defaultValue: LogLevel.INFO
|
||||
name: "log-level" }: LogLevel
|
||||
|
||||
version* {.
|
||||
desc: "prints the version"
|
||||
defaultValue: false
|
||||
name: "version" }: bool
|
||||
|
||||
nodekey* {.
|
||||
desc: "P2P node private key as 64 char hex string.",
|
||||
|
||||
@ -1306,6 +1306,12 @@ when isMainModule:
|
||||
quit 1 # if we don't leave here, the initialization of conf does not work in the success case
|
||||
{.pop.}
|
||||
|
||||
# if called with --version, print the version and quit
|
||||
if conf.version:
|
||||
const git_version {.strdefine.} = "n/a"
|
||||
echo "version / git commit hash: ", git_version
|
||||
quit(QuitSuccess)
|
||||
|
||||
var
|
||||
node: WakuNode # This is the node we're going to setup using the conf
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user