How to use yargs-parser

Comprehensive yargs-parser code examples:

How to use yargs-parser.detailed:

345
346
347
348
349
350
351
352
353
354
})

// short-circuit parse.
if (!unparsed.length) return

const parsed = Parser.detailed(unparsed, options)

if (parsed.error) {
  yargs.getUsageInstance().fail(parsed.error.message, parsed.error)
} else {