diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-28 00:18:25 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-28 00:18:25 +0530 |
commit | c9012cbd4ce9ba1037807ec1b00a6c9c5e1b0d14 (patch) | |
tree | e83c60c67562b1425434aa0b4d81b4838b15ecde /src/headless/taler-wallet-cli.ts | |
parent | 131d2b34d9d1f84782d749c9943a7da5ab9dab8a (diff) | |
download | wallet-core-c9012cbd4ce9ba1037807ec1b00a6c9c5e1b0d14.tar.xz |
add --extra-debug option to history
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 10 |
1 files changed, 6 insertions, 4 deletions
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", { |