改了什么
- 命令行:多写了用不上的词(比如
status unexpected),或者写了不认识的短参数(比如status -j),以前会被悄悄忽略、命令照常执行,碰上停止、暂停这类命令就可能做了不想做的事;现在会在执行前报错并给出用法。resolve后面写的结果说明仍然可以随便写,里面的--not、-x不会被当成参数(#456,感谢 shaojian0514)。
What's changed
- CLI: extra words a command doesn't take (for example
status unexpected) and unknown short flags (for examplestatus -j) used to be silently ignored while the command went ahead, which could matter for commands like stop or pause. They now stop the command before it does anything and show the usage. The free-text result given toresolveis unchanged: words like--notor-xin it are not read as flags (#456, thanks shaojian0514).