Closed oliverisaac closed 4 years ago
Hm, imma have to think about this a bit as it turns out it's a bit tricky. I think I'll need to refactor how ARGV
is parsed in order to extract the oq
arguments, collecting the rest to pass to jq
, and leave only the file for ARGF
to pickup.
~Possibly one solution that could make things easier is to make the file be it's own argument. Because of https://github.com/Blacksmoke16/oq/issues/16#issuecomment-513478548, supporting more than one file at a time is going to be unlikely so this could be a decent solution.~
EDIT: Nevermind, multiple files are supported so have to go back to the drawing board.
~New plan is to require the files to be passed after a ---
.~
EDIT: Ended up just refactoring how ARGV
is parsed to better handle files and multiple arguments.
This command fails:
With output:
Whereas this should work: