[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-nim] branch master updated: cli option: add option
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-nim] branch master updated: cli option: add option to specify gnunet config |
Date: |
Sat, 04 Aug 2018 20:38:41 +0200 |
This is an automated email from the git hooks/post-receive script.
dvn pushed a commit to branch master
in repository gnunet-nim.
The following commit(s) were added to refs/heads/master by this push:
new 87438e7 cli option: add option to specify gnunet config
87438e7 is described below
commit 87438e789bb2393c58f07e499af9133117f1f98a
Author: dvn <address@hidden>
AuthorDate: Sat Aug 4 20:37:14 2018 +0200
cli option: add option to specify gnunet config
---
gnunet_nim.nim | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnunet_nim.nim b/gnunet_nim.nim
index a78bb42..6fb917c 100644
--- a/gnunet_nim.nim
+++ b/gnunet_nim.nim
@@ -32,7 +32,7 @@ proc firstTask(gnunetApp: ref GnunetApplication,
stdinFile.close()
proc main() =
- var peer, port: string
+ var peer, port, configfile: string
var optParser = initOptParser()
for kind, key, value in optParser.getopt():
case kind
@@ -41,9 +41,10 @@ proc main() =
of cmdLongOption, cmdShortOption:
case key
of "port", "p": port = value
+ of "config", "c": configfile = value
of cmdEnd:
assert(false)
- var gnunetApp = initGnunetApplication("gnunet.conf")
+ var gnunetApp = initGnunetApplication(configfile)
asyncCheck firstTask(gnunetApp, peer, port)
try:
while true:
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet-nim] branch master updated: cli option: add option to specify gnunet config,
gnunet <=