Umama-at-Bluchip/Quick-UI
0
1'use strict';2 3// This example is used in the documentation.4 5// 1. const { parseArgs } = require('node:util'); // from node6// 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package7const { parseArgs } = require('..'); // in repo8 9const args = ['-f', '--bar', 'b'];10const options = {11 foo: {12 type: 'boolean',13 short: 'f'14 },15 bar: {16 type: 'string'17 }18};19const {20 values,21 positionals22} = parseArgs({ args, options });23console.log(values, positionals);24 25// Try the following:26// node simple-hard-coded.js27 