diff --git a/args.go b/args.go index f21470a..a563a25 100644 --- a/args.go +++ b/args.go @@ -9,7 +9,7 @@ type ( SMSSendArgs struct { PhoneNumber string `validate:"e164" arg:"-p,--phone,required" help:"Receiver's phone number"` - Message string `validate:"alphanum" arg:"-m,--msg,required" help:"Message to be sent"` + Message string `validate:"printascii" arg:"-m,--msg,required" help:"Message to be sent"` } SMSReadArgs struct { diff --git a/mcli.go b/mcli.go index e7f11b0..f7cad0b 100644 --- a/mcli.go +++ b/mcli.go @@ -108,6 +108,7 @@ func run() error { case args.SMS.Send != nil: err := validate.Struct(args.SMS.Send) if err != nil { + logger.With("err", err.Error()).Debug("sms send validation error") parser.FailSubcommand("Unknown values or action", "sms") }