Commit Graph

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