Skip to content

Commit

Permalink
Improve help when incorrectly typing "mobcli address". (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-oudard authored Dec 14, 2021
1 parent e5d3d88 commit 9974b8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/mobilecoin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9974b8f

Please sign in to comment.