title: npm run script, can't access command line args
body: <p>I'm an electron beginner, and I'm trying to use it to package up a react-based app.  I'm trying to run electron via a script entry in my package.json:</p>
  
  <pre><code>"electron-dev": "concurrently \"cross-env BROWSER=none npm start\" \"wait-on http://localhost:3000 &amp;&amp; electron . $npm_config_input \"",
  </code></pre>
  
  <p>That will run electron.js (which is what "main" is defined as earlier in the package.json file), but I need to pass in a command line argument.  I've seen references that indicate $npm_config_input will have the argument passed in this way:</p>
  
  <pre><code>% npm run electron-dev --input=file.tif
  </code></pre>
  
  <p>But that $npm_config_input doesn't seem to get expanded for me.  electron.js gets the literal string $npm_config_input.  I'm confused why this isn't working.</p>
  
  <p>It seems I could avoid this problem by doing this:</p>
  
  <pre><code>% npm run electron-dev -- --input=file.tif
  </code></pre>
  
  <p>But I don't know how to associate the input argument to the second command I'm starting using concurrently.  It would be nice if I could use something like $1 or $npm_config_input in its definition.  Does anyone have a solution for this?</p>
  
  <p>I'm running this on Windows 10 using git bash.  Other things generally work.  I have nodejs 12.16.2 installed.  TIA!</p>