提交 26375df5 作者: Richard Littauer

Added Default logic to `get` cmd

Part of #2484

License: MIT
Signed-off-by: 's avatarRichard Littauer <richard.littauer@gmail.com>
上级 a2bcec40
......@@ -41,9 +41,9 @@ may also specify the level of compression by specifying '-l=<1-9>'.
},
Options: []cmds.Option{
cmds.StringOption("output", "o", "The path where the output should be stored."),
cmds.BoolOption("archive", "a", "Output a TAR archive. Default: false."),
cmds.BoolOption("compress", "C", "Compress the output with GZIP compression. Default: false."),
cmds.IntOption("compression-level", "l", "The level of compression (1-9). Default: -1."),
cmds.BoolOption("archive", "a", "Output a TAR archive.").Default(false),
cmds.BoolOption("compress", "C", "Compress the output with GZIP compression.").Default(false),
cmds.IntOption("compression-level", "l", "The level of compression (1-9).").Default(-1),
},
PreRun: func(req cmds.Request) error {
_, err := getCompressOptions(req)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论