diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 8891807..09605bb 100755 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -124,7 +124,7 @@ async def send(ctx, amount: int, lock: str): @cli.command("receive", help="Receive coins.") @click.argument("coin", type=str) -@click.option("--unlock", "-u", default=None, help="Unlock coins.", type=str) +@click.option("--lock", "-l", default=None, help="Unlock coins.", type=str) @click.pass_context @coro async def receive(ctx, coin: str, unlock: str): @@ -132,11 +132,16 @@ async def receive(ctx, coin: str, unlock: str): wallet.load_mint() wallet.status() if unlock: - assert ( - len(unlock.split(":")) == 2 - ), "unlock format wrong, expected