Commit Graph

  • 9b062eff85 try to get a clean go mod jcarr Jeff Carr 2024-01-14 13:02:08 -0600
  • 119b334118 fix module path register v1.4.6 devel Jeff Carr 2024-01-14 10:55:20 -0600
  • b698745ef7 correct makefile v1.4.5 Jeff Carr 2024-01-08 03:01:13 -0600
  • 625ef41f20 go.mod for 'go.wit.com/arg' v1.4.4 v1.4.3-register-3 Jeff Carr 2024-01-02 05:32:40 -0600
  • 2f59cd70aa screw github v1.4.3-register-2 Jeff Carr 2024-01-02 05:21:25 -0600
  • f9208bdffb add Makefile v1.4.3-register Jeff Carr 2024-01-01 19:28:06 -0600
  • 42d240c6c1 add Register() Jeff Carr 2024-01-01 19:22:04 -0600
  • bf629a16cb
    Merge pull request #231 from alexflint/subcommand-aliases Alex Flint 2023-10-10 18:36:46 -0400
  • e7a4f77ed0 add a unittest for an internally messed up subcommand path Alex Flint 2023-10-08 20:24:18 -0400
  • 960d38c3ce add some more tests for subcommand aliases Alex Flint 2023-10-08 20:14:34 -0400
  • 0142b0b842 add subcommand aliases Alex Flint 2023-10-08 20:09:05 -0400
  • 5ec29ce755
    Merge pull request #229 from alexflint/dependabot/go_modules/gopkg.in/yaml.v3-3.0.0 Alex Flint 2023-09-10 15:05:06 -0700
  • 8e9f60aafc
    Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 dependabot[bot] 2023-08-30 13:58:31 +0000
  • 660b9045e1
    Merge pull request #223 from hhromic/fix-version-flag Alex Flint 2023-07-14 15:52:33 -0400
  • c73f38cd54
    Improve handling of version flag Hugo Hromic 2023-07-14 20:12:47 +0100
  • 463902ef7d
    Merge pull request #222 from IljaN/env-only-args Alex Flint 2023-07-02 10:07:10 -0400
  • 259c83fd5a Remove usage of additional envOnly struct variable Ilja Neumann 2023-06-29 21:26:34 +0200
  • 18623d869b help,usage and error messages and tests Ilja Neumann 2023-06-03 12:47:47 +0200
  • b928a1839a Parse env-only vars Ilja Neumann 2023-06-03 09:50:42 +0200
  • ccf62e0ffc don't print env-vars in usage line Ilja Neumann 2023-06-03 03:14:14 +0200
  • 5f10667949 fixed tests Pablo Diaz 2022-05-21 17:44:32 +0200
  • c3cac76438 added tests and fixed usage Pablo Diaz 2022-05-21 17:24:45 +0200
  • 0280e6e591 ignores short and long parameters Pablo Diaz 2022-05-20 17:35:02 +0200
  • e25b4707a7
    Merge pull request #211 from alexflint/clean-up-osexit-stderr-stdout Alex Flint 2023-02-08 06:56:56 -0800
  • df28e7154b clean up customizable stdout, stderr, and exit in parser config Alex Flint 2023-02-08 09:49:03 -0500
  • 5dbdd5d0c5
    Merge pull request #210 from cabuda/master Alex Flint 2023-02-08 06:13:50 -0800
  • efae1938fd feat: support more env than terminal duxinlong 2023-02-08 12:01:48 +0000
  • c0a8e20a0a
    Merge pull request #205 from dmzkrsk/strict-subgroup-parsing Alex Flint 2023-01-27 08:35:12 -0800
  • 5036dce2d6 fix typo Alexey Trofimov 2023-01-18 11:52:13 +0300
  • cef66fd2f6 add strict subcommand parsing Alexey Trofimov 2023-01-18 11:50:50 +0300
  • 727f8533ac
    Merge pull request #185 from alexflint/default-value-issue Alex Flint 2022-10-29 12:29:07 -0700
  • 3489ea5b2e in a second place: use reflect.Ptr not reflect.Pointer since the latter was added in Go 1.18 Alex Flint 2022-10-29 15:23:56 -0400
  • 763072452f use reflect.Ptr not reflect.Pointer since the latter was added in Go 1.18 Alex Flint 2022-10-29 15:21:21 -0400
  • 3d95a706a6 Merge remote-tracking branch 'origin/master' into default-value-issue Alex Flint 2022-10-29 15:19:23 -0400
  • d949871b67 add further comment about backwards-compatible method for setting default values Alex Flint 2022-10-29 15:13:57 -0400
  • 9d5e97ac8a drop unnecessary test Alex Flint 2022-10-29 15:12:53 -0400
  • 67f7183b85 remove unused textMarshalerType and isTextMarshaler Alex Flint 2022-10-29 15:10:11 -0400
  • 522dbbcea8 add test for the new default value parsing logic as it shows up in help messages Alex Flint 2022-10-29 15:08:48 -0400
  • 27c832b934 store both a default value and a string representation of that default value in the spec for each option Alex Flint 2022-10-29 14:47:13 -0400
  • 197e226c77 drop unnecessary use of templates in this test Alex Flint 2022-10-29 12:28:06 -0400
  • dbc2ba5d0c
    Merge pull request #198 from daenney/mustparse Alex Flint 2022-10-10 08:41:57 -0700
  • 4fc9666f79 Implement MustParse on Parse Daniele Sluijters 2022-10-05 17:59:23 +0200
  • 11f9b624a9
    Merge pull request #196 from alexflint/bump_go_versions Alex Flint 2022-10-02 13:17:43 -0700
  • 7f4979a06e update to latest 3 versions of Go for CI Alex Flint 2022-10-02 13:16:32 -0700
  • 0c21f821f8
    Merge pull request #195 from alexflint/bump_scalar_dep Alex Flint 2022-10-02 13:07:36 -0700
  • ea0f540c40 update to latest go-scalar, add test for hex, oct, and binary integer literals Alex Flint 2022-10-02 13:05:04 -0700
  • 74af96c6cc
    Merge pull request #191 from SebastiaanPasterkamp/add-epilog-to-help Alex Flint 2022-09-27 12:48:05 -0700
  • c8b9567d1b Feat: Add epilog after help text Sebastiaan Pasterkamp 2022-09-17 12:39:31 +0200
  • ebd7a68a06
    Merge pull request #172 from SebastiaanPasterkamp/ignore-default-option Alex Flint 2022-06-11 09:06:03 -0400
  • 23b2b67fe2 fix issue #184 Alex Flint 2022-06-09 11:21:29 -0400
  • b48371a62f Simplify sub-command initialization w/o IgnoreDefault Sebastiaan Pasterkamp 2022-06-05 17:54:46 +0200
  • f0f44b65d1
    Merge pull request #175 from alexflint/bracketing-positionals v1.4.3 Alex Flint 2022-02-09 18:04:03 -0800
  • 5fb236a65d fix bracketing for non-required positionals Alex Flint 2022-02-09 06:31:34 -0800
  • d3706100bf
    Merge pull request #173 from GreyXor/master Alex Flint 2022-01-05 10:02:04 -0500
  • 25d4d1c864
    Update go.sum GreyXor 2022-01-05 15:58:54 +0100
  • 3bf2a5e78a
    Update testify dependency to 1.7.0 GreyXor 2022-01-05 15:43:52 +0100
  • a87d80089a Add 'IgnoreDefault' option Sebastiaan Pasterkamp 2022-01-02 15:06:37 +0100
  • bf32f08247
    Merge pull request #166 from alexflint/env-in-error Alex Flint 2021-10-01 04:44:19 -0700
  • b47d6e3da6 put name of environment variable in error message Alex Flint 2021-10-01 04:35:15 -0700
  • a4afd6a849
    Merge pull request #156 from alexflint/usage-for-subcommands Alex Flint 2021-09-18 08:57:29 -0700
  • f2f876420c Merge remote-tracking branch 'origin/master' into usage-for-subcommands Alex Flint 2021-09-18 08:55:40 -0700
  • 66cb696e79
    Merge pull request #164 from evgenv123/evgenv123-patch-1 Alex Flint 2021-09-18 08:53:02 -0700
  • 0f0b4b5c3f
    Update README.md Alex Flint 2021-09-18 08:50:33 -0700
  • b157e8d10a
    Update README.md evgenv123 2021-09-18 22:23:26 +0700
  • ff38a63b36
    Merge pull request #162 from alexflint/support-for-urls Alex Flint 2021-08-20 19:59:18 -0700
  • 3d59e5e89e bump go-scalar to v1.1 and add documentation about supported types Alex Flint 2021-08-20 19:52:48 -0700
  • eb0393e9bc
    Merge pull request #158 from alexflint/unexported-embedded v1.4.2 Alex Flint 2021-05-24 21:50:33 -0700
  • fa12c02e81 recurse into unexported embedded structs Alex Flint 2021-05-24 21:45:11 -0700
  • 7cc8da61cf simplify the error string logic Alex Flint 2021-05-09 14:01:08 -0700
  • c9b504edc1 add FailSubcommand, WriteUsageForSubcommand, WriteHelpForSubcommand Alex Flint 2021-05-09 13:55:34 -0700
  • 679be43af3
    Merge pull request #153 from alexflint/test-empty-map v1.4.1 Alex Flint 2021-04-20 19:11:21 -0700
  • 2e81334206 fix case where an environment variable containing an empty string is parsed into a slice or map Alex Flint 2021-04-20 19:09:47 -0700
  • 9d937ba6c9
    Merge pull request #152 from alexflint/mappings-with-commas v1.4.0 Alex Flint 2021-04-20 12:26:56 -0700
  • 1e81bb6866 fix the mappings-with-commas example Alex Flint 2021-04-20 12:23:49 -0700
  • 4354574615
    Merge pull request #151 from alexflint/fix-lint Alex Flint 2021-04-20 12:20:36 -0700
  • 473453d8c8 fix lint issue Alex Flint 2021-04-20 12:14:14 -0700
  • a84487a43a updated the example for mappings with commas Alex Flint 2021-04-19 21:35:09 -0700
  • a0937d1b58
    Merge pull request #150 from alexflint/push-coverage-up-more Alex Flint 2021-04-19 21:27:53 -0700
  • 01a9fab8d7 clean up environment variable tests Alex Flint 2021-04-19 21:22:12 -0700
  • fe4a138ac8 test coverage 100% !! Alex Flint 2021-04-19 21:03:43 -0700
  • 6a01a15f75
    Merge pull request #149 from alexflint/parse-into-map Alex Flint 2021-04-19 19:27:31 -0700
  • d4b9b2a008 push coverage up even more Alex Flint 2021-04-19 19:23:08 -0700
  • a80336128c more test coverage Alex Flint 2021-04-19 14:50:05 -0700
  • 57f610284f add an runnable example for mappings Alex Flint 2021-04-19 14:01:29 -0700
  • 91214e01ea add an example of parsing into a map to the readme Alex Flint 2021-04-19 13:59:00 -0700
  • 0100c0a411 push code coverage up Alex Flint 2021-04-19 13:48:07 -0700
  • bb4e7fd4b0 add unittests for maps as environment variables with the separate flag Alex Flint 2021-04-19 13:33:31 -0700
  • ccf882dca7 finish adding comments to spec Alex Flint 2021-04-19 13:25:11 -0700
  • 9949860eb3 change "kind" to "cardinality", add support for maps to parser Alex Flint 2021-04-19 13:21:04 -0700
  • 23b96d7aac refactor canParse into kindOf Alex Flint 2021-04-19 12:49:49 -0700
  • 1dfefdc43e factor setSlice into its own file, add setMap, and add tests for both Alex Flint 2021-04-19 12:10:53 -0700
  • f4eb7f3a58
    Merge pull request #137 from alexflint/optional-long Alex Flint 2021-04-16 21:03:14 -0700
  • 113aef7114
    Merge pull request #147 from alexflint/ci-go16 Alex Flint 2021-04-16 21:01:28 -0700
  • cec6b0d378 add go 1.6 to CI Alex Flint 2021-04-16 20:45:13 -0700
  • 172800ff9a fix a comment Alex Flint 2021-04-16 20:44:18 -0700
  • cf2205c84d
    Merge pull request #144 from leozhantw/refactor/remove-unused-function Alex Flint 2021-04-07 11:32:48 -0700
  • 4f2ab5c009 refactor: remove unused function LeoZhan 2021-04-08 00:20:56 +0800
  • ec285c8ec4 Merge remote-tracking branch 'origin/master' into optional-long Alex Flint 2021-01-31 19:43:30 -0800
  • bd6844a20d
    Merge pull request #138 from alexflint/ci-go15 Alex Flint 2021-01-31 19:43:20 -0800
  • efe5cdf4da replace "name" and "typ" by storing the original StructField Alex Flint 2021-01-31 19:40:38 -0800