Skip to content

Commit c48d8a7

Browse files
pchampingkellogg
authored andcommitted
fix a bug in bin/jsonld
compact from the command line was not working, because the `--compact` option was updating the wrong object
1 parent cb40f56 commit c48d8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ opts = GetoptLong.new(*OPT_ARGS.map {|o| o[0..-2]})
141141
opts.each do |opt, arg|
142142
case opt
143143
when '--debug' then logger.level = Logger::DEBUG
144-
when '--compact' then parser_options[:compact] = true
144+
when '--compact' then options[:compact] = true
145145
when "--compactArrays" then parser_options[:compactArrays] = (arg || 'true') == 'true'
146146
when '--context' then parser_options[:context] = RDF::URI(arg).absolute? ? arg : File.open(arg)
147147
when '--evaluate' then input = arg

0 commit comments

Comments
 (0)