Show error for unknown action with nucypher stake. Fix #1142

pull/1163/head
David Núñez 2019-07-26 13:16:24 +02:00
parent 33bfb85b3c
commit 2a26d54e6d
1 changed files with 3 additions and 0 deletions

View File

@ -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