minimist

  1. const args = require('minimist')(process.argv.slice(2), {
  2. boolean: ['clear'],
  3. });
  4. const shouldClear = args['clear'];