Blacksmoke16 / oq

A performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data.
https://blacksmoke16.github.io/oq/
MIT License
190 stars 15 forks source link

The value of the -L argument is removed #103

Closed Lucidiot closed 2 years ago

Lucidiot commented 2 years ago

The -L argument, used to add directories to jq's module search path, seems to be missing its value when it gets sent to jq:

λ echo '{}' | oq -L this/folder/does/not/exist .
{}

λ echo '{}' | oq -L /tmp .     
-L takes a parameter: (e.g. -L /search/path or -L/search/path)
Use jq --help for help with command-line options,
or see the jq manpage, or online docs  at https://stedolan.github.io/jq

Note that both -L blah and -Lblah are accepted according to the manpage.

Blacksmoke16 commented 2 years ago

Can confirm this is a bug with accepting -L option with a space. Works fine w/o a space. E.g. -Lmodules.