more aliases in nak encode flags.

This commit is contained in:
fiatjaf 2024-06-13 12:05:27 -03:00
parent 9f98a0aea3
commit 2135b68106

View File

@ -110,8 +110,9 @@ var encode = &cli.Command{
Usage: "attach relay hints to nevent code", Usage: "attach relay hints to nevent code",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "author", Name: "author",
Usage: "attach an author pubkey as a hint to the nevent code", Aliases: []string{"a"},
Usage: "attach an author pubkey as a hint to the nevent code",
}, },
}, },
Action: func(c *cli.Context) error { Action: func(c *cli.Context) error {
@ -157,7 +158,7 @@ var encode = &cli.Command{
&cli.StringFlag{ &cli.StringFlag{
Name: "pubkey", Name: "pubkey",
Usage: "pubkey of the naddr author", Usage: "pubkey of the naddr author",
Aliases: []string{"p"}, Aliases: []string{"author", "a", "p"},
Required: true, Required: true,
}, },
&cli.Int64Flag{ &cli.Int64Flag{