We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7af41a4 commit 1eecfb6Copy full SHA for 1eecfb6
lib/skunk/cli/options/argv.rb
@@ -42,10 +42,11 @@ def to_h
42
private
43
44
def parse_out_option(values)
45
- if values.all? { |val| Skunk::Config.supported_format?(val.to_sym) }
46
- Skunk::Config.formats = values.map(&:to_sym)
+ formats_sym = values.map(&:to_sym)
+ if formats_sym.all? { |fmt| Skunk::Config.supported_format?(fmt) }
47
+ Skunk::Config.formats = formats_sym
48
else
- self.output_filename = values.join(",")
49
+ self.output_filename = formats_sym.join(",")
50
end
51
52
0 commit comments