We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3945d3f commit 4da297fCopy full SHA for 4da297f
args.go
@@ -9,7 +9,7 @@ type (
9
10
SMSSendArgs struct {
11
PhoneNumber string `validate:"e164" arg:"-p,--phone,required" help:"Receiver's phone number"`
12
- 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"`
13
}
14
15
SMSReadArgs struct {
mcli.go
@@ -108,6 +108,7 @@ func run() error {
108
case args.SMS.Send != nil:
109
err := validate.Struct(args.SMS.Send)
110
if err != nil {
111
+ logger.With("err", err.Error()).Debug("sms send validation error")
112
parser.FailSubcommand("Unknown values or action", "sms")
113
114
0 commit comments