@@ -116,6 +116,7 @@ OPT_ARGS = [
116116 [ "--output" , "-o" , GetoptLong ::REQUIRED_ARGUMENT , "Where to store output (default STDOUT)" ] ,
117117 [ "--profile" , GetoptLong ::NO_ARGUMENT , "Run profiler with output to doc/profiles/" ] ,
118118 [ "--quiet" , GetoptLong ::NO_ARGUMENT , "Reduce output" ] ,
119+ [ "--rdfstar" , GetoptLong ::REQUIRED_ARGUMENT , "RDF* mode, SA or PG" ] ,
119120 [ "--stream" , GetoptLong ::NO_ARGUMENT , "Streaming reader/writer" ] ,
120121 [ "--uri" , GetoptLong ::REQUIRED_ARGUMENT , "Run with argument value as base" ] ,
121122 [ "--validate" , GetoptLong ::NO_ARGUMENT , "Validate input" ] ,
@@ -156,6 +157,9 @@ opts.each do |opt, arg|
156157 when '--quiet'
157158 options [ :quiet ] = true
158159 logger . level = Logger ::FATAL
160+ when '--rdfstar'
161+ parser_options [ :rdfstar ] = arg . to_sym
162+ usage unless [ :PG , :SA ] . include? ( parser_options [ :rdfstar ] )
159163 when '--stream' then parser_options [ :stream ] = true
160164 when '--uri' then parser_options [ :base ] = arg
161165 when '--validate' then parser_options [ :validate ] = true
0 commit comments