title: How to retrieve command-line args which was passed during building [custom build system] in typescript
body: <p>I know how to retrieve command-line args in JS by using following manner,</p>
  
  <pre><code>`Config.getTestArgs = () =&gt; {
      try {
          return global.commandLineArgs.args["test-args"];
      }
      catch (e) {
          logger.error(`Error reading test - args from command line: ${ e } `);
          return null;
      }
  };`
  </code></pre>
  
  <p>When i use the same way in Typescript, i get an error <code>Cannot find module- global</code></p>
  
  <p>If i pass my input like </p>
  
  <pre><code>`--build --test-args TestArument1`
  </code></pre>
  
  <p><code>getTestArgs</code> should return TestArgument1 as output.</p>
  
  <p>Consider we have our own build system which uses nodeJs and Typescript. Which nodeJS dependencies should i need to consider?</p>