{"_id":"@putout/cli-validate-args","_rev":"896057","name":"@putout/cli-validate-args","description":"validate args, sugest closest variant","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2024-07-21T01:41:02.000Z","created":"2021-02-22T13:05:04.476Z","2.0.0":"2024-07-19T15:31:15.490Z","1.1.1":"2021-09-05T10:43:49.884Z","1.1.0":"2021-08-23T10:49:27.306Z","1.0.1":"2021-02-22T13:09:54.107Z","1.0.0":"2021-02-22T13:05:04.476Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"2.0.0":{"name":"@putout/cli-validate-args","version":"2.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"validate args, sugest closest variant","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-validate-args#readme","main":"lib/validate-args.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"fastest-levenshtein":"^1.0.12","just-kebab-case":"^4.2.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"c8":"^10.0.0","eslint":"^9.7.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^10.0.0"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/cli-validate-args@2.0.0","gitHead":"40f098bc44a8151ad43f4bac8c90d258b1dcc050","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/tl1XiBog6XMb1T9kalFerYU86sYsl6EtrlvGI5RVtlHOQdEEJAIPRxmX4vnKG3uoY5aVEkJOWzbPM5tsncmFQ==","shasum":"ac2e70beb3975a6121fede422f70edd4e1c06771","tarball":"http://registry-npm.ywwl.com/@putout/cli-validate-args/download/@putout/cli-validate-args-2.0.0.tgz","fileCount":4,"unpackedSize":4342,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5dwFT4rbuzPQo/5yv6vnPuldxESDRo0wyGBscK2IxhAIgBY0hjZa0L+MXVBzQtqebP+WW3NvFznZGqyEqrwKfQ3I="}],"size":2108,"noattachment":false,"key":"/@putout/cli-validate-args/-/@putout/cli-validate-args-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-validate-args_2.0.0_1721403075349_0.00312812305415755"},"_hasShrinkwrap":false,"publish_time":1721403075490,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1721403075490},"1.1.1":{"name":"@putout/cli-validate-args","version":"1.1.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"validate args, sugest closest variant","homepage":"http://github.com/coderaiser/putout","main":"lib/validate-args.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"fastest-levenshtein":"^1.0.12","just-kebab-case":"^1.1.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^9.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1","putout":"*","supertape":"^6.0.0"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-validate-args@1.1.1","_nodeVersion":"16.8.0","_npmVersion":"7.12.0","dist":{"integrity":"sha512-AczBS98YyvsDVxvvYjHGyIygFu3i/EJ0xsruU6MlytTuUiCFQIE/QQPDy1bcN5J2Y75BzSYncaYnVrEGcBjeeQ==","shasum":"3e59e51e3ae00dd06f475708f2a43bf1bee2426b","tarball":"http://registry-npm.ywwl.com/@putout/cli-validate-args/download/@putout/cli-validate-args-1.1.1.tgz","fileCount":4,"unpackedSize":4604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNJ9lCRA9TVsSAnZWagAAVDQP/2wcItnXffU9wreFE4Ck\nt6HjMuX62UtV8p/bdcfj0rcjZPILRMSh6nw8aDgpWCtjwbLywiCD0LMht3sz\nmG6uU3JiEqvZ+d2Hy0Z1776zayVXaod/0qsYuXL61JtAUG8VCI7NuGVYVEZt\nxEvSCVwm43jVfDcKoZjX/sLr4w9fBj0saKQkzSTAEW8GO7n+9nDNzH9fRmaY\nbYqi3oslncxgq37C0LtMNs75Du9Q+ocm1MJDUtIDBu/njVgeKESTXLPRLkrw\nvxoV8p6q1PKdCU4klx8d5uuqwpYl+VLg9dAA3VWP1+oiHY5kJUHLiRGdE9hu\n0yWO/F1LyCGTeEq7ipb7apQDdIJZDej28tIN8vEojTvAn5E5hn2cCq8SzWJy\n0Gkprk4fLxt4nPs6EHOjjgC8fB7pKLIo0ZR+ah/J1hYMP8Ixm0J52dOnJJiZ\njj1NAHZSazsfGs/gLFIDjvSyeZzv+M0bnYAUg8cGYNtC+6v6QQ+te2+jQiqH\ntcD7B0Q9r/D5zMzB5fdL1UgjvCyWp516VohBhr+jdLn8F7lmkPbbllCz1mWn\n2YHh916/BFyl+H7JTHU0Akr+CIs3Oof5EOJgKVYgCP+4Y5Xo0PQ+BNIZY5Aw\n//39/kNIabegjP/v9JXqP25aX489JDnIarKL0La/ngJuiO/nTm6oFY72ytFd\nGpFo\r\n=jrlj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVoyGzKF0zL/mBPxjXCJU3iKZB23YKJF5bq9xqXwSRZAIgE6XOAiV0zzOAnmGES0K2CIYXkIlA5RxgHGoEOWbnrFk="}],"size":2170,"noattachment":false,"key":"/@putout/cli-validate-args/-/@putout/cli-validate-args-1.1.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-validate-args_1.1.1_1630838629745_0.2235274175556745"},"_hasShrinkwrap":false,"publish_time":1630838629884,"_cnpm_publish_time":1630838629884},"1.1.0":{"name":"@putout/cli-validate-args","version":"1.1.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"validate args, sugest closest variant","homepage":"http://github.com/coderaiser/putout","main":"lib/validate-args.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"fastest-levenshtein":"^1.0.12","just-kebab-case":"^1.1.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^9.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1","putout":"*","supertape":"^6.0.0"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-validate-args@1.1.0","_nodeVersion":"16.7.0","_npmVersion":"7.20.3","dist":{"integrity":"sha512-lygSjUgiJLAP/dP6AEQBYcAgynv5yj14wCvPUOKQEVSmujpjATVzdEdK1y49+T/NpB2LNlsS1tEjQPQQN6NzUA==","shasum":"8aacb470471e0aa682b4eb1ddeb82425e556c662","tarball":"http://registry-npm.ywwl.com/@putout/cli-validate-args/download/@putout/cli-validate-args-1.1.0.tgz","fileCount":4,"unpackedSize":4600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI303CRA9TVsSAnZWagAAs8wQAJWpjBYwpocGtO7rZswZ\nSKDxI5xFDrSN+JHwSnlgkGIRTk2hibTHGwAOezRyA1kjhGbXCGpOEPmg3oyN\nxgcIMTGarBXkSpyMWvqnANRl5UgR/xpRj/1gsirO6qpzzRYQ9pIHD4Z0xL15\n2xSm5wugxFJgrcxgnaXRdtzw/T/8J/f6mfoccH8SgTvCAKgOCjLdu10spc7U\nozXCUQO8cLXe8N+ItiwSnZtysWNm3HYKvMohbiz1igZYmcVcqQQep9gQCAnC\nb+tSGPfcNGwZy8WriUMFg3bOaTIschxT+VX5KfDQndM5f8wLwL2F3+x+WTjK\nytGhxKL2CxopcW1k5dacS7zv51EUNdnULaL59UHdkrzqepNG0+k6lvAw8ght\nR613Vq0CTBrBQhZaZXGAQQUxxeo5aYCxVgVpVTZ2puLIqAZphcd6XGM1sesW\n/6pW+RO7W4tKMEd4JFl8SCFWJEbrEBH6Gx38+uJm3+TonvNbA9Gorn2Qf6rh\nRduN5EbGoze3UAgqVEO7D4aei7ayTDQw6LqWjBwi//UIJ4DtBc7hxKNxMO60\nP6rjnkRdG9cVKJnuNlOYu2ZsRACJgA+nxeW9XY4D+bMAClNYZjTmSsLxmYqf\njJJenctFBzfAU75qEKc39YNL0quiJzO/AMD3KMNeieE0RD1p0dYN2fbnRG8q\n5zWO\r\n=H8Xd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrX+9ZSVElb3MGJbn4zlfWKfZCGQh8eNhhGECceSdfJAIgRV+2gz46d+o8ExBm4dyT4bqZmsrq8u4ST3FJHvb4G34="}],"size":2161,"noattachment":false,"key":"/@putout/cli-validate-args/-/@putout/cli-validate-args-1.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-validate-args_1.1.0_1629715767163_0.6471917869972161"},"_hasShrinkwrap":false,"publish_time":1629715767306,"_cnpm_publish_time":1629715767306},"1.0.1":{"name":"@putout/cli-validate-args","version":"1.0.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"validate args, sugest closest variant","homepage":"http://github.com/coderaiser/putout","main":"lib/validate-args.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"fastest-levenshtein":"^1.0.12","just-kebab-case":"^1.1.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^3.8.5","madrun":"^8.0.1","mock-require":"^3.0.3","nodemon":"^2.0.1","putout":"*","supertape":"^4.3.1"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-validate-args@1.0.1","_nodeVersion":"15.9.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-wN0Uu0nAlixQePbxhAk1/zfkelyGJXnh+SNE6qdilUsLwKBNsezrFCKwMBbll5wKCylRR0X9q1uUZa7G9ajXfA==","shasum":"3a205aede67a0e36f46fb113563520d5ed4e1ed2","tarball":"http://registry-npm.ywwl.com/@putout/cli-validate-args/download/@putout/cli-validate-args-1.0.1.tgz","fileCount":4,"unpackedSize":4567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM60iCRA9TVsSAnZWagAAeCAQAIezu1E8pWi5lE9AxZBG\n3eIg6OtIvAsixVlhGLjwSmDMmxICKNsLrBuzkw/M9n1T6JXj0oyMN4tYvXBj\n27ezfFbg06hYisa84r5j9TwEU9Z41EIoOOfVuQTjPp9Zc6NhmfBumU+hVWeD\nLt4Q9ZKEzt2nBr74RC/HrdWjWMk/d+xl0nD8k64tlm+OsE8wfoLX4PKBzbAU\niB/yagnqic1sYGWW7ew/YGeKxBw8glPqu9/6P8kZVF+h58VWKco6bo9/8spu\nhHFVhzy82YIqlOYHWKkaOQS6VQfdoGAjNNBrexz/yPhEnZjTKmHaWxq31vIL\nlntfoiEEq3F6853KvYnNGkMwi3NlUlF7sx5JI24uQ8wG1GUa10rUmNBsrSjw\nvmiUHHHJ7fIiyR4qCrVWNYhRIIMmJtg7RrM3JhWh2SJsmx7hO0IoPraatobD\nQunLW6YyIMcFl/4H1um9Njf2cyXWdVUCzAnrdubvQJfIIaUpgcDds4QogEB9\nmX10hY3SA1+NwbuJpuYDCp9wA/1htU5x748raM0NF9VdtfgSeCt84wW8ONC4\nd4zzYoz+FkILKJM8UYoxl59+y49kfnT3bY9Ykp0OINbJMba8CzUeiET5zZuS\nIXUUbS8KI2gtYfJolPfkJ101mUzLsT477v358LG2cywGfIv29BTWkG6BpGWK\nyd1b\r\n=6AUK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRLpyJANcV8ae/Ags2rqvMOESonoQxWE4g/gfVZs8vNAIhALb0/Y9vHlEP0gFzjDtuBD3WNKOok8Tj6Hn8gcAjJ2aF"}],"size":2178,"noattachment":false,"key":"/@putout/cli-validate-args/-/@putout/cli-validate-args-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-validate-args_1.0.1_1613999393948_0.6557652908216551"},"_hasShrinkwrap":false,"publish_time":1613999394107,"_cnpm_publish_time":1613999394107},"1.0.0":{"name":"@putout/cli-validate-args","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"validate args, sugest closest variant","homepage":"http://github.com/coderaiser/putout","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"fastest-levenshtein":"^1.0.12","just-kebab-case":"^1.1.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^3.8.5","madrun":"^8.0.1","mock-require":"^3.0.3","nodemon":"^2.0.1","putout":"*","supertape":"^4.3.1"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-validate-args@1.0.0","_nodeVersion":"15.9.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-M/gMQHqgofUQvySxikUsKinpeA3/458EEGeeGgg35ktr2WwYasVMRbHyMqhx+2yALVNjrHqt+1jPFoZHpUUWJg==","shasum":"c31d61bffb272ac09b0a3b2c851ee53248946102","tarball":"http://registry-npm.ywwl.com/@putout/cli-validate-args/download/@putout/cli-validate-args-1.0.0.tgz","fileCount":4,"unpackedSize":4562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM6wACRA9TVsSAnZWagAAvZsP+QB0L/0Ph3Voprn2MAVZ\nFsw8iSPk2I+r3pZ97/HvsBbdlKqSu+SwAVgxPFQ5lqgUiGukG1mM4AQDg/Pv\nDwVyQqW6zDaChAEK0U/fyK4oChhk368Rq6tHRwQzJ3yGnQNyTFViUrTqPNKM\nTGwrO+fxLdxISTj7oUThVeuys3O45Xk/goFMm94IrOLrwQQxvhz6cHWUcv0B\n2jiLocINGsKmUD0RrViTEMfTftb+l0vzm7N4LjfjpEXU5wdrOVODmGC7PYJr\nWczcqgqp81Il2kQSL7hGE6tvKKuDPyEicPS6VThSzbsRGDXmro55alFdPll8\ngWxjiv13I1/6wGGi5rSUDwaY7BJE8w92/BZK+/gqfFRohxwBxe+6pbjW5+B1\nMshHZf4NwWdKXVMRm+LnjUxKfII5odHKuYdm6toZ0DnAgaWAFh/X5ERma/xZ\nO0MGnvxXmSSjqIKRfNceiSogr8xG56WI5f/nKo0bBB+VCwY7grvcXZxu6kfQ\nRmAyvqpDpxQSVknZX5K+XP1akN7nSbz6WgNyDTdy9NU5tAM5rxqNzM3yQvwC\ncwgdryjo2IeQpRm51ZqMvEhEw8JsuA7QJhbNPWh7vn2oA34iM95mFbJDLz1G\nPNirBhNHT4Epr2z21yHOS1+NVCDy73FBtQ3PeLEBenmmcTjWQ0IewIPAyb0I\npI3/\r\n=CHSP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFypMHFD3bqlt+0ivYqyl1nNc9QMtrU/86ymQKvo4NVAiEArC1k7UaVjWZhv+32XaDv81WAqpEEu4dik+5s97+7Zvk="}],"size":2182,"noattachment":false,"key":"/@putout/cli-validate-args/-/@putout/cli-validate-args-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-validate-args_1.0.0_1613999104308_0.8770514862250176"},"_hasShrinkwrap":false,"publish_time":1613999104476,"_cnpm_publish_time":1613999104476}},"readme":"# @putout/cli-validate-args [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-validate-args.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-validate-args\"npm\"\n\nValidate args and propose the closes variaint found by [fastest-levenshtein](https://www.npmjs.com/package/fastest-levenshtein):\n\n```\nInvalid option '--fi'. Perhaps you meant '--fix'`\n```\n\n## Install\n\n```\nnpm i @putout/cli-validate-args\n```\n\n## Examples\n\n```js\n// validate-args.js\nimport {validateArgs} from '@putout/cli-validate-args';\nimport parse from 'yargs-parser';\n\nconst argv = process.argv.slice(2);\n\nconst yargsConfig = {\n    configuration: {\n        'strip-aliased': true,\n        'strip-dashed': true,\n    },\n    number: ['fix-count'],\n    boolean: ['fix'],\n};\n\nconst args = parse(argv, yargsConfig);\n\nconst error = await validateArgs(args, [\n    ...yargsConfig.boolean,\n    ...yargsConfig.number,\n]);\n\nif (error) {\n    console.error(error.message);\n    process.exit(1);\n}\n```\n\n```sh\n$ node validate-args.js --fi\nInvalid option '--fi'. Perhaps you meant '--fix'`\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-validate-args#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}