From 2a26d54e6d5f3c81ce4b765e7eb58633e6ed729b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Fri, 26 Jul 2019 13:16:24 +0200 Subject: [PATCH] Show error for unknown action with nucypher stake. Fix #1142 --- nucypher/cli/stake.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nucypher/cli/stake.py b/nucypher/cli/stake.py index fc91dd4b4..bac791a80 100644 --- a/nucypher/cli/stake.py +++ b/nucypher/cli/stake.py @@ -279,4 +279,7 @@ def stake(click_config, staking=staking_reward, policy=policy_reward) + else: + ctx = click.get_current_context() + click.UsageError(message=f"Unknown action '{action}'.", ctx=ctx).show() return # Exit