diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-13 13:49:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-13 13:49:42 +0200 |
commit | 2310a3f4747edf100b4c96737426239c893a04a9 (patch) | |
tree | 50378498ee7e2f455840bac880411e549bd4b9df /src/mint-tools | |
parent | 9e9bad8dad9aacd3028e1baab76de36c8a5dbdc7 (diff) | |
download | exchange-2310a3f4747edf100b4c96737426239c893a04a9.tar.gz exchange-2310a3f4747edf100b4c96737426239c893a04a9.tar.bz2 exchange-2310a3f4747edf100b4c96737426239c893a04a9.zip |
fixing -h and -v command line tool options
Diffstat (limited to 'src/mint-tools')
-rw-r--r-- | src/mint-tools/taler-mint-dbinit.c | 3 | ||||
-rw-r--r-- | src/mint-tools/taler-mint-keyup.c | 9 | ||||
-rw-r--r-- | src/mint-tools/taler-mint-reservemod.c | 9 |
3 files changed, 12 insertions, 9 deletions
diff --git a/src/mint-tools/taler-mint-dbinit.c b/src/mint-tools/taler-mint-dbinit.c index f49916a6d..88af251e1 100644 --- a/src/mint-tools/taler-mint-dbinit.c +++ b/src/mint-tools/taler-mint-dbinit.c @@ -54,10 +54,11 @@ main (int argc, char *const *argv) { static const struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_OPTION_HELP ("gnunet-mint-dbinit OPTIONS"), {'d', "mint-dir", "DIR", "mint directory", 1, &GNUNET_GETOPT_set_filename, &mint_base_dir}, + GNUNET_GETOPT_OPTION_HELP ("Initialize Taler Mint database"), + GNUNET_GETOPT_OPTION_VERSION (VERSION "-" VCS_VERSION,) GNUNET_GETOPT_OPTION_END }; diff --git a/src/mint-tools/taler-mint-keyup.c b/src/mint-tools/taler-mint-keyup.c index 6685aab0b..cc60756a9 100644 --- a/src/mint-tools/taler-mint-keyup.c +++ b/src/mint-tools/taler-mint-keyup.c @@ -867,16 +867,17 @@ main (int argc, char *const *argv) { static const struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_OPTION_HELP ("gnunet-mint-keyup OPTIONS"), - {'m', "master-key", "FILE", - "master key file (private key)", 1, - &GNUNET_GETOPT_set_filename, &masterkeyfile}, {'d', "mint-dir", "DIR", "mint directory with keys to update", 1, &GNUNET_GETOPT_set_filename, &mint_directory}, + TALER_GETOPT_OPTION_HELP ("Setup signing and denomination keys for a Taler mint"), + {'m', "master-key", "FILE", + "master key file (private key)", 1, + &GNUNET_GETOPT_set_filename, &masterkeyfile}, {'t', "time", "TIMESTAMP", "pretend it is a different time for the update", 0, &GNUNET_GETOPT_set_string, &pretend_time_str}, + GNUNET_GETOPT_OPTION_VERSION (VERSION "-" VCS_VERSION), GNUNET_GETOPT_OPTION_END }; struct GNUNET_TIME_Relative lookahead_sign; diff --git a/src/mint-tools/taler-mint-reservemod.c b/src/mint-tools/taler-mint-reservemod.c index 3f3bdcd98..ce35ecc4c 100644 --- a/src/mint-tools/taler-mint-reservemod.c +++ b/src/mint-tools/taler-mint-reservemod.c @@ -212,16 +212,17 @@ main (int argc, char *const *argv) static char *reserve_pub_str; static char *add_str; static const struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_OPTION_HELP ("gnunet-mint-reservemod OPTIONS"), + {'a', "add", "DENOM", + "value to add", 1, + &GNUNET_GETOPT_set_string, &add_str}, {'d', "mint-dir", "DIR", "mint directory with keys to update", 1, &GNUNET_GETOPT_set_filename, &mint_directory}, + TALER_GETOPT_OPTION_HELP ("Deposit funds into a Taler reserve"), {'R', "reserve", "KEY", "reserve (public key) to modify", 1, &GNUNET_GETOPT_set_string, &reserve_pub_str}, - {'a', "add", "DENOM", - "value to add", 1, - &GNUNET_GETOPT_set_string, &add_str}, + GNUNET_GETOPT_OPTION_VERSION (VERSION "-" VCS_VERSION), GNUNET_GETOPT_OPTION_END }; char *connection_cfg_str; |