Skip to content

Commit 21edd19

Browse files
committed
update aw command usage
1 parent 0a5d370 commit 21edd19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/wallet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def _wallets_check(self):
4545
self.ton.SendFile(wallet.bocFilePath, wallet)
4646

4747
def activate_wallet(self, args):
48-
if not check_usage_args_min_max_len("aw", args, min_len=0, max_len=1):
48+
if not check_usage_one_arg("aw", args):
4949
return
50-
wallet_name = args[0] if len(args) == 1 else "all"
51-
if wallet_name == "all":
50+
wallet_name = args[0]
51+
if wallet_name == "--all":
5252
self._wallets_check()
5353
else:
5454
wallet = self.ton.GetLocalWallet(wallet_name)

mytonctrl/console_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"delete_collator": "[shard] <adnl>",
2525
"print_collators": "[--json]",
2626
"nw": "[<workchain_id> <wallet_name> [<version>] [<subwallet_id>]]",
27-
"aw": "[<wallet_name>|all]",
27+
"aw": "<wallet_name>|--all",
2828
"iw": "<wallet_addr> <wallet_secret_key>",
2929
"swv": "<wallet_addr> <wallet_version>",
3030
"ew": "<wallet_name>",

0 commit comments

Comments
 (0)