Commit Graph

24 Commits

Author SHA1 Message Date
n loewen 1d98a0707c Add some JSDoc annotations to make type-checking warnings go away 2023-09-23 19:16:25 -07:00
n loewen c3166ef17b Change parse() output to always use long flag names as keys 2023-09-23 19:09:16 -07:00
n loewen f43915c735 Breaking - Change: Rewrite with a new interface 2023-09-23 18:29:05 -07:00
n loewen b6005e11bb Create/start a sketch for a different API 2023-09-04 17:42:54 -07:00
n loewen 014afb0c86 Remove one space 2023-09-04 17:41:42 -07:00
n loewen 4dec08afbc Fix: Correctly check synonyms when checking if an option is provided by the user 2023-09-02 16:40:51 -04:00
n loewen ddef1d82dc Fix: Error in previous fix 2023-09-02 16:33:17 -04:00
n loewen e5e1eeec8a Fix: Check for synonyms when checking for required arguments 2023-09-02 16:28:25 -04:00
n loewen b9e15019c0 Add 'contains' function 2023-09-02 16:11:10 -04:00
n loewen c2ea099bbf Rename to 'opter' 2023-09-02 15:39:33 -04:00
n loewen 0d2224eba7 Rewrite: Make it a class, and add some methods for basic validation 2023-09-02 15:38:11 -04:00
n loewen e061fb0e76 (infra) - gitignore - Ignore files with '.tmp.' in their name 2023-09-02 13:48:16 -04:00
n loewen 5b3cac5103 Fix: Return an object instead of an array, so that it's easy to read values of specific options 2023-09-02 13:48:02 -04:00
n loewen 86e16a9855 finish WIP - Complete rewrite; remove commented-out material + console.logs 2023-08-31 23:46:53 -04:00
n loewen 1a1b189f7a WIP - Rewrite to better handle multiple option-arguments / operands 2023-08-31 23:45:17 -04:00
n loewen cec7d20a14 WIP - Change to allow something like `-f=file` 2023-08-31 21:43:23 -04:00
n loewen 216cdcae53 Remove complex parser; replace it with simpler one 2023-08-29 22:28:03 -04:00
n loewen 32d3d87d71 Create a simpler argument parse -- no validation, just returns a more usable object than the default argv 2023-08-29 22:23:36 -04:00
n loewen 6ca7bb2a71 Change some undefined variables 2023-08-29 22:22:41 -04:00
n loewen 584d9dd95f (tests) Add line requiring 'test' module 2023-08-28 09:05:01 -04:00
n loewen c31f5ce295 Remove line requiring 'test' module 2023-08-28 09:04:43 -04:00
n loewen 79c5473bf0 Change: Move tests to a separate file, set up exporting from arg-parser.js 2023-08-26 21:20:12 -04:00
n loewen bd2a0c300d Change: tidy up 2023-08-26 20:58:49 -04:00
n loewen 81b106088d First commit: WIP - Start to create a parser for command-line 'argv' arguments 2023-08-26 20:52:27 -04:00