gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] branch master updated: provide --config as


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: provide --config as well.
Date: Fri, 11 May 2018 16:35:06 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 0673f5d  provide --config as well.
0673f5d is described below

commit 0673f5d923ede7a40a7cd011967222b73acb9cc5
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri May 11 16:34:50 2018 +0200

    provide --config as well.
---
 .../taler-merchant-generate-payments_new.c              | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c 
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index a7cd41d..21f4f8a 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -95,6 +95,11 @@ static const char *default_config_file;
 static char *loglev;
 
 /**
+ * Config filename.
+ */
+static char *cfg_filename;
+
+/**
  * Bank base URL.
  */
 static char *bank_url;
@@ -125,7 +130,7 @@ run (void *cls,
 
     TALER_TESTING_cmd_exec_wirewatch
       ("wirewatch-1",
-       default_config_file),
+       cfg_filename),
 
     TALER_TESTING_cmd_withdraw_amount
       ("withdraw-coin-1",
@@ -218,7 +223,7 @@ run (void *cls,
 
     TALER_TESTING_cmd_exec_aggregator
       ("aggregate-1",
-       default_config_file),
+       cfg_filename),
 
     TALER_TESTING_cmd_merchant_track_transaction
       ("track-transaction-1",
@@ -279,6 +284,9 @@ main (int argc,
 
   struct GNUNET_GETOPT_CommandLineOption options[] = {
 
+    GNUNET_GETOPT_option_cfgfile
+      (&cfg_filename),
+
     GNUNET_GETOPT_option_version
       (PACKAGE_VERSION " " VCS_VERSION),
 
@@ -286,7 +294,7 @@ main (int argc,
       ("Generate Taler payments to populate the database(s)"),
 
     GNUNET_GETOPT_option_loglevel
-      (loglev),
+      (&loglev),
 
     GNUNET_GETOPT_option_uint
       ('n',
@@ -351,6 +359,9 @@ main (int argc,
                     loglev,
                     logfile);
 
+  if (NULL == cfg_filename)
+    cfg_filename = (char *) default_config_file;
+
   if (NULL == merchant_url)
   {
     TALER_LOG_ERROR ("Option -m is mandatory!\n");

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]