-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aliyun alidns AddDomainRecord 命令 value不支持-开头 #537
Comments
使用这种方式可以,但是空格的方式最好也支持下。 |
是的,我上面写了,用=就行了,但是命令行传参用等号还是有点怪,最好能支持下空格的方式。 |
横杠被用作了 arguments 解析了。参数值与之冲突了。 |
用getopt-example.bash做个例子吧 比如某个option后面必须加argument,那么后面的字���串不管是什么,都当成argument,不能当成option,比如下面的find -name -a A -- signals the end of options and disables further option processing. Any arguments after the -- are treated as filenames and arguments. An argument of - is equivalent to --. |
aliyun alidns AddDomainRecord --DomainName makemusic-asia.com --RR test --Type txt --Value '-a'
ERROR: parse failed unknown flag -a
0@09:42:53#walkerxk@ecs/> aliyun alidns AddDomainRecord --DomainName makemusic-asia.com --RR test --Type txt --Value 'a'
{
"RecordId": "794716613104842752",
"RequestId": "4CE364B2-EF06-5A95-9B6F-7BB365B12551"
}
0@09:43:06#walkerxk@ecs/> aliyun alidns AddDomainRecord --DomainName makemusic-asia.com --RR test --Type txt --Value '-a'
ERROR: parse failed unknown flag -a
0@09:43:08#walkerxk@ecs/> aliyun alidns AddDomainRecord --DomainName makemusic-asia.com --RR test --Type txt --Value -- '-a'
ERROR: parse failed not support '--' in command line
0@09:43:34#walkerxk@ecs/>
value以-开头就报错
The text was updated successfully, but these errors were encountered: