我看到了命令sudo apt-get update --dry-run,它显然说它应该给出需要更新的软件包的数量。然而,当我在Ubuntu16.04上运行它时,我得到了E: Command line option --dry-run is not understood in combination with the给出更新数量的正确命令是什么,最好类似于sudo apt-get update --dry-run?
我有一个自定义脚本,它需要一个--host=hostname形式的参数,并且允许一个可选的参数-n, --dry-run。我已经创建了zsh完成,其中提供了可选的参数: local -a args
'(-n --dry-run)'{-n,--dry-run}'[show what would have been transferred]'
_arguments $args
/config -o yaml --dry-run | kubectl replace -W1009 17:00:14.998329 323115 helpers.go:553] --dry-run is deprecated and can be replacedwith --dry-run=client.
我寻找的是类似于部署的逻辑,例如:W0419 23:54:11.092265 76572 helpers.go:553] --dry-run is deprecated and can be replaced with --dry-run=client.80status: {}$ kubectl run test-po