diff --git a/encode.go b/encode.go index 5fb2071..3d6773a 100644 --- a/encode.go +++ b/encode.go @@ -20,8 +20,8 @@ var encode = &cli.Command{ nak encode nevent --author --relay --relay nak encode nsec `, Before: func(c *cli.Context) error { - if c.Args().Len() < 2 { - return fmt.Errorf("expected more than 2 arguments.") + if c.Args().Len() < 1 { + return fmt.Errorf("expected more than 1 argument.") } return nil },