From 29db04b7eaf4406575a9a01f62eecc644973e4c5 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sun, 8 Mar 2026 11:14:25 +0900 Subject: [PATCH] fix: add missing target flag to nutzap command --- wallet.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wallet.go b/wallet.go index 9e93b7a..0e68aef 100644 --- a/wallet.go +++ b/wallet.go @@ -370,6 +370,10 @@ var wallet = &cli.Command{ Description: " is in satoshis, can be an npub, nprofile, nevent or hex pubkey.", DisableSliceFlagSeparator: true, Flags: []cli.Flag{ + &cli.StringFlag{ + Name: "target", + Usage: "npub, nprofile, nevent or hex pubkey", + }, &cli.StringFlag{ Name: "mint", Usage: "send from a specific mint", @@ -380,9 +384,8 @@ var wallet = &cli.Command{ }, }, Action: func(ctx context.Context, c *cli.Command) error { - args := c.Args().Slice() - if len(args) < 2 { - return fmt.Errorf("must be called as `nak wallet nutzap ...") + if c.Args().Len() < 1 { + return fmt.Errorf("must be called as `nak wallet nutzap --target ...") } w, closew, err := prepareWallet(ctx, c)