From 9974b8f444fd5e3e1ce13574a1d8757ade1fbc47 Mon Sep 17 00:00:00 2001 From: Christian Oudard Date: Mon, 13 Dec 2021 17:12:07 -0800 Subject: [PATCH] Improve help when incorrectly typing "mobcli address". (#213) --- cli/mobilecoin/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/mobilecoin/cli.py b/cli/mobilecoin/cli.py index cb247805e..79bd94257 100644 --- a/cli/mobilecoin/cli.py +++ b/cli/mobilecoin/cli.py @@ -569,7 +569,10 @@ def qr(self, account_id): print() def address(self, action, **args): - getattr(self, 'address_' + action)(**args) + try: + getattr(self, 'address_' + action)(**args) + except TypeError: + self.address_args.print_help() def address_list(self, account_id): account = self._load_account_prefix(account_id)