[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-nim] 27/61: cli option: add option to specify gnune
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-nim] 27/61: cli option: add option to specify gnunet config |
Date: |
Sat, 13 Apr 2019 13:36:02 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet-nim.
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
- [GNUnet-SVN] [gnunet-nim] 01/61: license for lurchi's code, (continued)
- [GNUnet-SVN] [gnunet-nim] 01/61: license for lurchi's code, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 06/61: .gitignore: fix syntax error, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 07/61: add asynccadet code (does not compile yet), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 19/61: make the cleanup proc the finalizer (no explicit call necessary anymore), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 13/61: connection to cadet service successful, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 15/61: use the bundled gnunet.conf, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 20/61: let's try out ports and channels, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 11/61: make cadetConnect an async proc, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 39/61: add shutdown procedure, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 30/61: gitignore: add gnunet generated files and folders, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 27/61: cli option: add option to specify gnunet config,
gnunet <=
- [GNUnet-SVN] [gnunet-nim] 14/61: don't use AsyncEvent but store Futures in GnunetApplication, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 22/61: we get notified about an incoming CADET channel (and then we crash), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 24/61: command line parsing; application code for creating channel, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 17/61: Merge branch 'master' of ssh://gnunet.org/gnunet-nim, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 16/61: disconnect after connecting (shuts down the application), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 12/61: fix segfaults using heap allocation, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 08/61: Merge branch 'master' of ssh://gnunet.org/gnunet-nim, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 18/61: make the cleanup proc the finalizer (no explicit call necessary anymore), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 35/61: use nicer new syntax, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 31/61: use ref object where we only use heap allocation, gnunet, 2019/04/13