title: What is the use of optimist module in Node.Js
body: <p><a href="https://github.com/substack/node-optimist" rel="nofollow">https://github.com/substack/node-optimist</a></p>
  
  <blockquote>
    <p>Optimist is a node.js library for option parsing for people who hate
    option parsing. More specifically, this module is for people who like
    all the --bells and -whistlz of program usage but think optstrings are
    a waste of time.</p>
  </blockquote>
  
  <pre><code>var argv = require('optimist').argv;
  
  if (argv.rif - 5 * argv.xup &gt; 7.138) {
    console.log('Buy more riffiwobbles');
  }
  else {
    console.log('Sell the xupptumblers');
  }
  </code></pre>
  
  <ol>
  <li>In this code, is <code>rif</code> and <code>xup</code> are two arguments. </li>
  <li>Is it like passing command line arguments to your script, rather than doing that in the script itself.</li>
  <li>What is the main purpose of this module, any real-time examples
  build in some other languages could be helpful.</li>
  </ol>