From 2135b681060ed5ebcf22ccb40a7158e6ba298a9c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 13 Jun 2024 12:05:27 -0300 Subject: [PATCH] more aliases in nak encode flags. --- encode.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/encode.go b/encode.go index 4bee620..24689e3 100644 --- a/encode.go +++ b/encode.go @@ -110,8 +110,9 @@ var encode = &cli.Command{ Usage: "attach relay hints to nevent code", }, &cli.StringFlag{ - Name: "author", - Usage: "attach an author pubkey as a hint to the nevent code", + Name: "author", + Aliases: []string{"a"}, + Usage: "attach an author pubkey as a hint to the nevent code", }, }, Action: func(c *cli.Context) error { @@ -157,7 +158,7 @@ var encode = &cli.Command{ &cli.StringFlag{ Name: "pubkey", Usage: "pubkey of the naddr author", - Aliases: []string{"p"}, + Aliases: []string{"author", "a", "p"}, Required: true, }, &cli.Int64Flag{