mirror of https://github.com/nucypher/nucypher.git
Show error for unknown action with nucypher stake. Fix #1142
parent
33bfb85b3c
commit
2a26d54e6d
|
@ -279,4 +279,7 @@ def stake(click_config,
|
||||||
staking=staking_reward,
|
staking=staking_reward,
|
||||||
policy=policy_reward)
|
policy=policy_reward)
|
||||||
|
|
||||||
|
else:
|
||||||
|
ctx = click.get_current_context()
|
||||||
|
click.UsageError(message=f"Unknown action '{action}'.", ctx=ctx).show()
|
||||||
return # Exit
|
return # Exit
|
||||||
|
|
Loading…
Reference in New Issue