From 3998a937e506cef027fa267adce16425ed6193d4 Mon Sep 17 00:00:00 2001 From: Tadeas Moravec Date: Fri, 16 Nov 2018 15:15:35 +0000 Subject: [PATCH] Enhance help text for print_ring. --- src/simplewallet/simplewallet.cpp | 6 ++++-- translations/monero.ts | 7 +++++-- translations/monero_fr.ts | 7 +++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 505e5525e..1b86e0ec5 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1408,7 +1408,7 @@ bool simple_wallet::print_ring(const std::vector &args) crypto::hash txid; if (args.size() != 1) { - fail_msg_writer() << tr("usage: print_ring "); + fail_msg_writer() << tr("usage: print_ring | "); return true; } @@ -2653,7 +2653,9 @@ simple_wallet::simple_wallet() m_cmd_binder.set_handler("print_ring", boost::bind(&simple_wallet::print_ring, this, _1), tr("print_ring | "), - tr("Print the ring(s) used to spend a given key image or transaction (if the ring size is > 1)")); + tr("Print the ring(s) used to spend a given key image or transaction (if the ring size is > 1)\n\n" + "Output format:\n" + "Key Image, \"absolute\", list of rings")); m_cmd_binder.set_handler("set_ring", boost::bind(&simple_wallet::set_ring, this, _1), tr("set_ring | ( absolute|relative [...] )"), diff --git a/translations/monero.ts b/translations/monero.ts index d17317ae9..23eadff84 100644 --- a/translations/monero.ts +++ b/translations/monero.ts @@ -1196,7 +1196,7 @@ This transaction will unlock on block %llu, in approximately %s days (assuming 2 - usage: print_ring <key_image|txid> + usage: print_ring <key_image> | <txid> @@ -1979,7 +1979,10 @@ Pending or Failed: "failed"|"pending", "o - Print the ring(s) used to spend a given key image or transaction (if the ring size is > 1) + Print the ring(s) used to spend a given key image or transaction (if the ring size is > 1) + +Output format: +Key Image, "absolute", list of rings diff --git a/translations/monero_fr.ts b/translations/monero_fr.ts index 19a125fdb..238ba17df 100644 --- a/translations/monero_fr.ts +++ b/translations/monero_fr.ts @@ -2987,8 +2987,11 @@ subaddress-lookahead <major>:<minor> - Print the ring(s) used to spend a given key image or transaction (if the ring size is > 1) - Afficher le(s) cercle(s) utilisé(s) pour dépenser une image de clé ou une transaction (si la taille de cercle est > 1) + Print the ring(s) used to spend a given key image or transaction (if the ring size is > 1) + +Output format: +Key Image, "absolute", list of rings + Afficher le(s) cercle(s) utilisé(s) pour dépenser une image de clé ou une transaction (si la taille de cercle est > 1)