aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-cli/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 5aa7c49f1..6613f256a 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -367,6 +367,7 @@ walletCli
help: "Run until no more work is left.",
})
.maybeOption("maxRetries", ["--max-retries"], clk.INT)
+ .flag("failOnMaxRetries", ["--fail-on-max-retries"])
.action(async (args) => {
await withWallet(args, async (wallet) => {
logger.info("running until pending operations are finished");
@@ -375,7 +376,7 @@ walletCli
stopWhenDone: true,
});
wallet.ws.stop();
- if (resp.retriesExceeded) {
+ if (resp.retriesExceeded && args.finishPendingOpt.failOnMaxRetries) {
process.exit(EXIT_RETRIES_EXCEEDED);
}
});