Commit Graph

15 Commits

Author SHA1 Message Date
Alex Flint 47ff44303f drop support for help tag inside arg tag 2022-10-07 12:51:55 -07:00
Alex Flint 55d9025329 rename "accumulatedArgs" -> "accessible" 2022-10-04 13:54:53 -07:00
Alex Flint 0769dd5839 add tests for new Process* and OverwriteWith* functions 2022-10-04 13:51:51 -07:00
Alex Flint 84b7154efc add TestSliceWithEqualsSign 2022-10-04 13:25:01 -07:00
Alex Flint 1cc263f9f2 add processSequence and make it responsible for respecting "overwrite" 2022-10-04 13:23:57 -07:00
Alex Flint b365ec0781 add processSingle and make it responsible for checking whether an argument has been seen before 2022-10-04 13:12:38 -07:00
Alex Flint 64288c5521 add appendToSlice, appendToMap, appendToSliceOrMap 2022-10-04 12:48:04 -07:00
Alex Flint 2775f58376 add OverwriteWithOptions, OverwriteWithCommandLine 2022-10-04 12:34:53 -07:00
Alex Flint 5f0c48f092 move construction logic out of parse.go into construct.go 2022-10-04 11:54:22 -07:00
Alex Flint 5ca19cd72d cleaned up the test helpers parse, pparse, and parseWithEnv: now all are just using "parse" 2022-10-04 11:39:58 -07:00
Alex Flint 4aea783023 changed NewParser to take options at the end rather than config at the front 2022-10-04 11:28:34 -07:00
Alex Flint a1e2b672ea add a test to check that default values can be ignored if needed 2022-10-04 11:06:19 -07:00
Alex Flint 22f214d7ed added test that library does not directly access environment variables from OS 2022-10-04 11:02:57 -07:00
Alex Flint 09d28e1195 split the parsing logic into ProcessEnvironment, ProcessCommandLine, ProcessOptions, ProcessPositions, ProcessDefaults 2022-10-04 11:00:42 -07:00
Alex Flint 2e6284635a drop support for multiple destination structs 2022-10-04 08:56:31 -07:00