aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/index.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 7cff0df88..a4c99902c 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -195,6 +195,14 @@ export const walletCli = clk
type WalletCliArgsType = clk.GetArgType<typeof walletCli>;
+function checkEnvFlag(name: string): boolean {
+ const val = process.env[name];
+ if (val == "1") {
+ return true;
+ }
+ return false;
+}
+
async function withWallet<T>(
walletCliArgs: WalletCliArgsType,
f: (w: { client: WalletCoreApiClient; ws: Wallet }) => Promise<T>,
@@ -208,6 +216,11 @@ async function withWallet<T>(
persistentStoragePath: dbPath,
httpLib: myHttpLib,
});
+
+ if (checkEnvFlag("TALER_WALLET_BATCH_WITHDRAWAL")) {
+ wallet.setBatchWithdrawal(true);
+ }
+
applyVerbose(walletCliArgs.wallet.verbose);
try {
const w = {