Commit Graph

9 Commits

Author SHA1 Message Date
Sebastiaan Pasterkamp ca8dc31b84 fix: ensure Parser.val cannot be nil
Used when adding values to subcommands as
these are undefined pointers initially.

This refactoring is in preparation of
parsing group structs later.
2022-12-10 15:56:01 +01:00
Alex Flint fe4a138ac8 test coverage 100% !! 2021-04-19 21:03:43 -07:00
Alex Flint bd97edec87 add Parser.Subcommand and Parser.SubcommandNames 2019-05-03 16:08:29 -07:00
Alex Flint c6473c4586 add tests for nested subcommands and subcommands with positionals 2019-05-03 11:21:34 -07:00
Alex Flint 5b649de043 test no such subcommand 2019-05-02 09:16:33 -07:00
Alex Flint 15b9bcfbb4 add several subcommand unittests 2019-04-30 13:53:14 -07:00
Alex Flint 39decf197f add several subcommand unittests 2019-04-30 13:49:55 -07:00
Alex Flint af12b7cfc2 introduced path struct 2019-04-30 13:30:23 -07:00
Alex Flint 6a796e2c41 add first two subcommand tests 2019-04-30 12:54:39 -07:00