Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-07-01 03:17:47 +03:00
parent c62be60010
commit ddf141d05b
2 changed files with 19 additions and 5 deletions

View File

@ -5,11 +5,11 @@ Simple argv parser
## Motivation ## Motivation
I needed a new argv parser for a quick and dirty project I was working on I needed a new argv parser for a quick and dirty project I was working
and evaluating and selecting the propper existing parser and then learining its on and evaluating and selecting the proper existing parser and then
API, quirks and adapting the architecture to it seemd to be more complicated, learning its API, quirks and adapting the architecture to it seemed
require more effort and far less fun than putting together a trivial parser to be more complicated, require more effort and far less fun than
myself in a couple of hours. putting together a trivial parser myself in a couple of hours.
This code is an evolution of that parser. This code is an evolution of that parser.

14
argv.js
View File

@ -1,5 +1,19 @@
/********************************************************************** /**********************************************************************
* *
* argv.js
*
* A simple argv parser
*
* Motivation:
* I needed a new argv parser for a quick and dirty project I was working
* on and evaluating and selecting the proper existing parser and then
* learning its API, quirks and adapting the architecture to it seemed
* to be more complicated, require more effort and far less fun than
* putting together a trivial parser myself in a couple of hours.
* This code is an evolution of that parser.
*
* Repo and docs:
* https://github.com/flynx/argv.js
* *
* *
**********************************************************************/ **********************************************************************/