title: Pass arguments from npm script to bash shell script
body: <p>package.json:</p>
  
  <pre><code>"scripts": {
    "test": "bash test.sh"
  },
  </code></pre>
  
  <p>test.sh:</p>
  
  <pre><code>#!/bin/bash
  for i in "$@"
  do
  case $i in
      -l=*|--lib=*)
      LIBPATH="${i#*=}"
      shift # past argument=value
      ;;
      --default)
      DEFAULT=YES
      shift # past argument with no value
      ;;
      *)
              # unknown option
      ;;
  esac
  done
  echo "LIBRARY PATH    = ${LIBPATH}"
  </code></pre>
  
  <p>Tried invoking: <code>npm run test -l=/usr/lib</code>, ain't working though.</p>