title: How to print command line arguments out with npm or yargs in a react component?
body: <p>I'm trying to print out the command line arguments in a React Component.  </p>
  
  <p>NPM docs say I can using..</p>
  
  <pre><code>console.log(process.argv);
  </code></pre>
  
  <p>However, this doesn't print anything.  </p>
  
  <pre><code>Array(0)
  </code></pre>
  
  <p>Above is what it prints in console.  I'm calling my program with ...</p>
  
  <pre><code>npm start
  </code></pre>
  
  <p>where start is npm electron . ok</p>
  
  <p>Can yargs print the command line arguments in a react component?  Should I be trying to use yargs?  I can't find any documentation on how to do it with just react. I know electron can only print it out in the main.js and the remote process will not work in a react component.  </p>