German-BioImaging / omero-rdf

A plugin for exporting RDF from OMERO
GNU General Public License v2.0
5 stars 5 forks source link

return a list of descended items #20

Closed stefanches7 closed 3 months ago

stefanches7 commented 4 months ago

Noticed a small TODO, the new version lets one run omero rdf with no ids. (Compare before: such a run threw variable referenced before assignment)

I don't feel great about returning a list with the declared returning URIRef type, but so far it works and the integration test passes.

joshmoore commented 4 months ago

Thanks for stepping up to fix this! I think the biggest question is whether or not the command counts as an error.

A few other options that would make it an error:

Thoughts?

stefanches7 commented 3 months ago

@joshmoore sorry, I did not get notified about this. Printing the help message with the requirement of targets is in my opinion the best choice here.

joshmoore commented 3 months ago

:+1: I think the nargs change should do that.

stefanches7 commented 3 months ago

@joshmoore added and tested image

joshmoore commented 3 months ago

Thanks, @stefanches7!