robot icon indicating copy to clipboard operation
robot copied to clipboard

Consider making the --output argument more universal (particularly robot export & query)

Open allenbaron opened this issue 11 months ago • 5 comments

Would it be possible to add --output / -o as an argument to robot export as an alias for the --export argument. Most of the other robot commands (report, extract, etc.) use --output so I invariably try it for robot export and forget that it is not there until I get the error (and then have to look it up).

A similar thing happens when I use robot query with the --query argument. I often specify the output path with the -o argument but it is only an accepted input in connection with the --update argument. It is unusual to me that the --query argument takes two strings, the path to the query and the path for the output.

It seems maybe originally the -o option was meant to apply only for ontology output files? The use of -o in robot report does break that pattern though. I imagine it would be possible to implement these changes without altering the current behavior of the functions. robot query would probably be the hardest to fix.

I would offer a fix myself but don't have the bandwidth at this time (and basically no experience with java). This does not need to be high priority since it is primarily an inconvenience.

Thanks!

allenbaron avatar Nov 08 '24 18:11 allenbaron