Parse arguments with recursive contexts and nested subcommands
parse arguments with recursive contexts
subarg$ node -e "const subarg = require('@minimistjs/subarg'); console.log(subarg(['cmd', '--flag', 'value']))"$ node -e "const subarg = require('@minimistjs/subarg'); console.log(subarg(['deploy', '--env', 'prod', 'notify', '--slack', 'true']))"$ node -e "const subarg = require('@minimistjs/subarg'); const args = subarg(['git', 'config', '--global', 'user.name', 'John']); console.log(JSON.stringify(args, null, 2))"