[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: Provide --help opti
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: Provide --help option to the paygen. |
Date: |
Fri, 11 May 2018 16:06:56 +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 435390e Provide --help option to the paygen.
435390e is described below
commit 435390e4d981f15e55ebe9c45772816c1c39a28e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri May 11 16:06:38 2018 +0200
Provide --help option to the paygen.
---
src/merchant-tools/taler-merchant-generate-payments_new.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index 95c477b..f9a5eb1 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -277,6 +277,9 @@ main (int argc,
struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_help
+ ("Generate Taler payments to populate the database(s)"),
+
GNUNET_GETOPT_option_uint
('n',
"payments-number",
@@ -322,11 +325,19 @@ main (int argc,
GNUNET_GETOPT_OPTION_END
};
- GNUNET_assert (GNUNET_SYSERR != GNUNET_GETOPT_run
+ result = GNUNET_GETOPT_run
("taler-merchant-generate-payments-new",
options,
argc,
- argv));
+ argv);
+
+ if (GNUNET_NO == result)
+ {
+ /* --help was given, just return. */
+ return 0;
+ }
+
+ GNUNET_assert (GNUNET_SYSERR != result);
GNUNET_log_setup ("taler-merchant-generate-payments-new",
"DEBUG",
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: Provide --help option to the paygen.,
gnunet <=