add min commands
@@ -12,6 +12,7 @@ func PubkeyToAddress() *cobra.Command {
return &cobra.Command{
Use: "pubkey [public key]",
Short: "Converts a public key to an address",
+ Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
pubKey, err := base64.StdEncoding.DecodeString(args[0])
if err != nil {
