title: How to use `jq` in a shell pipeline?
body: <p>I can't seem to get <code>jq</code> to behave &quot;normally&quot; in a shell pipeline.  For example:</p>
  <pre><code>$ curl -s https://api.github.com/users/octocat/repos | jq | cat
  </code></pre>
  <p>results in <code>jq</code> simply printing out its help text*.  The same thing happens if I try to redirect <code>jq</code>'s output to a file:</p>
  <pre><code>$ curl -s https://api.github.com/users/octocat/repos | jq &gt; /tmp/stuff.json
  </code></pre>
  <p>Is <code>jq</code> deliberately bailing out if it determines that it's not being run from a tty?  How can I prevent this behavior so that I can use <code>jq</code> in a pipeline?</p>
  <p>Edit: it looks like this is no longer an issue in recent versions of <code>jq</code>. I have <code>jq-1.6</code> now and the examples above work as expected.</p>
  <hr />
  <p>* <sub>(I realize this example contains a <a href="http://porkmail.org/era/unix/award.html" rel="noreferrer">useless use of cat</a>; it's for illustration purposes only)</sub></p>