Skip to content

Commit

Permalink
fix a bug in bin/jsonld
Browse files Browse the repository at this point in the history
compact from the command line was not working, because the `--compact` option was updating the wrong object
  • Loading branch information
pchampin committed Feb 25, 2021
1 parent cb40f56 commit 9c96431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/jsonld
Expand Up @@ -141,7 +141,7 @@ opts = GetoptLong.new(*OPT_ARGS.map {|o| o[0..-2]})
opts.each do |opt, arg|
case opt
when '--debug' then logger.level = Logger::DEBUG
when '--compact' then parser_options[:compact] = true
when '--compact' then options[:compact] = true
when "--compactArrays" then parser_options[:compactArrays] = (arg || 'true') == 'true'
when '--context' then parser_options[:context] = RDF::URI(arg).absolute? ? arg : File.open(arg)
when '--evaluate' then input = arg
Expand Down

0 comments on commit 9c96431

Please sign in to comment.