title: Get the value of git command in shell script
body: <p>I want to use husky to run a shell script to return <code>exit 1</code> if a user includes the <code>--tags</code> option in a git push command.</p>
  <p>I have husky set up like this in my package.json</p>
  <pre><code>&quot;husky&quot;: {
    &quot;hooks&quot;: {
      &quot;pre-push&quot;: &quot;sh stopTagPush.sh&quot;
    }
  }
  </code></pre>
  <p>When I run the command <code>git push origin --tags</code> this runs my script but I don't know how to get access to the value of the git command <code>git push origin --tags</code> to see if <code>--tags</code> is present. Is there a git variable that I can use to access the command value inside the script?</p>