Added Default logic to `get` cmd
Part of #2484 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
Richard Littauer committed
May 11, 2016 at 16:47 UTC
26375df59042b557031fa79bd3822807bf342951
1 file changed
+3
-3
core/commands/get.go
+3
-3
@@ -41,9 +41,9 @@ may also specify the level of compression by specifying '-l=<1-9>'.
41
},
42
Options: []cmds.Option{
43
cmds.StringOption("output", "o", "The path where the output should be stored."),
44
- cmds.BoolOption("archive", "a", "Output a TAR archive. Default: false."),
45
- cmds.BoolOption("compress", "C", "Compress the output with GZIP compression. Default: false."),
46
- cmds.IntOption("compression-level", "l", "The level of compression (1-9). Default: -1."),
44
+ cmds.BoolOption("archive", "a", "Output a TAR archive.").Default(false),
45
+ cmds.BoolOption("compress", "C", "Compress the output with GZIP compression.").Default(false),
46
+ cmds.IntOption("compression-level", "l", "The level of compression (1-9).").Default(-1),
47
},
48
PreRun: func(req cmds.Request) error {
49
_, err := getCompressOptions(req)