From c9012cbd4ce9ba1037807ec1b00a6c9c5e1b0d14 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 28 Mar 2020 00:18:25 +0530 Subject: add --extra-debug option to history --- src/headless/integrationtest.ts | 4 ++-- src/headless/taler-wallet-cli.ts | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/headless') diff --git a/src/headless/integrationtest.ts b/src/headless/integrationtest.ts index fbc6223fc..0c015207e 100644 --- a/src/headless/integrationtest.ts +++ b/src/headless/integrationtest.ts @@ -188,7 +188,7 @@ export async function runIntegrationTest(args: IntegrationTestArgs) { await myWallet.runUntilDone(); - const history = await myWallet.getHistory({ verboseDetails: true }); + const history = await myWallet.getHistory({ extraDebug: true }); console.log( "history after integration test:", @@ -323,7 +323,7 @@ export async function runIntegrationTestBasic(cfg: Configuration) { await myWallet.runUntilDone(); - const history = await myWallet.getHistory({ verboseDetails: true }); + const history = await myWallet.getHistory({ extraDebug: true }); console.log( "history after integration test:", diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index fafa94874..45ab819a7 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -135,8 +135,7 @@ const walletCli = clk "Inhibit running certain operations, useful for debugging and testing.", }) .flag("noThrottle", ["--no-throttle"], { - help: - "Don't do any request throttling.", + help: "Don't do any request throttling.", }) .flag("version", ["-v", "--version"], { onPresentHandler: printVersion, @@ -206,9 +205,12 @@ walletCli .maybeOption("to", ["--to"], clk.STRING) .maybeOption("limit", ["--limit"], clk.STRING) .maybeOption("contEvt", ["--continue-with"], clk.STRING) + .flag("extraDebug", ["--extra-debug"]) .action(async (args) => { await withWallet(args, async (wallet) => { - const history = await wallet.getHistory(); + const history = await wallet.getHistory({ + extraDebug: args.history.extraDebug, + }); if (args.history.json) { console.log(JSON.stringify(history, undefined, 2)); } else { @@ -403,7 +405,7 @@ advancedCli }); }); - const coinPubListCodec = makeCodecForList(codecForString); +const coinPubListCodec = makeCodecForList(codecForString); advancedCli .subcommand("suspendCoins", "suspend-coins", { -- cgit v1.2.3