Skip to content

Commit

Permalink
set compress option type to boolean
Browse files Browse the repository at this point in the history
...without the type set:

```$ canga --help
Expected string default value for '--compress'; got false (boolean)
Commands:
  canga --version, -V        # show version
  canga add FILE [REPO]      # add a new file to the repository
  ...
```
  • Loading branch information
jtriley committed Dec 6, 2016
1 parent d43dbe9 commit e6e8034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/canga
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ class Canga < Thor
desc "export IMAGE OUTPUT", "export an image to a file"
option :format, :desc => "format for output image", :default => :qcow2,
:aliases => :f
option :compress, :desc => "compress output qcow2 image", :default => false,
:aliases => :c
option :compress, :desc => "compress output qcow2 image", :type => :boolean,
:default => false, :aliases => :c
def export(image, output)
image = $cangallo.get(image)

Expand Down

0 comments on commit e6e8034

Please sign in to comment.