Commit Graph

  • b099bc916b fix typo Alex Flint 2021-01-31 19:27:06 -0800
  • bfa189218e add go1.15 to CI, drop go1.11 Alex Flint 2021-01-31 19:25:17 -0800
  • 2a91531140 Merge remote-tracking branch 'origin/master' into optional-long Alex Flint 2021-01-31 19:20:28 -0800
  • 788c166025 test that short-only options are printed first in the help message Alex Flint 2021-01-31 19:15:49 -0800
  • 2a23168641
    Merge pull request #136 from alexflint/ignore-unexported Alex Flint 2021-01-31 18:46:05 -0800
  • aa6cb95149 skip unexported fields Alex Flint 2021-01-31 18:29:22 -0800
  • 438a91dba1 Skip right column if the left is empty Andrew Morozko 2020-12-20 03:51:33 +0300
  • 04c3fdbd80 Updated readme Andrew Morozko 2020-12-20 03:07:18 +0300
  • faebd3e0f2 Optional long arguments Andrew Morozko 2020-12-20 02:54:03 +0300
  • b91c03d2c6
    Merge pull request #123 from alexflint/drop-vendor Alex Flint 2020-09-27 09:28:24 -0700
  • 7b1d8470a9 drop vendor directory Alex Flint 2020-08-12 15:49:47 -0700
  • 96c756c382
    Merge pull request #122 from alexflint/short-and-long Alex Flint 2020-08-06 16:52:47 -0700
  • c47edd0324 add documentation and examples showing how to override the short and long option names together Alex Flint 2020-08-06 16:41:45 -0700
  • a68c3d0653
    Merge pull request #120 from alexflint/dedent-tag-loop Alex Flint 2020-07-06 09:59:15 -0700
  • 6be0398e80 move empty tag check inside the loop Alex Flint 2020-07-06 09:54:23 -0700
  • 2a3b5ea3cb
    Merge pull request #116 from denysvitali/master Alex Flint 2020-06-03 11:07:27 -0400
  • d4bb56e096 feat(usage): Include env variable in usage Denys Vitali 2020-06-03 10:05:20 +0200
  • 912ef0c3e4
    Merge pull request #114 from alexflint/migrate-to-codecov Alex Flint 2020-04-17 16:41:42 -0400
  • 2bc58b597b replace coveralls badge with codecov Alex Flint 2020-04-17 16:37:00 -0400
  • 65205f111c fix github actions config Alex Flint 2020-04-17 16:33:48 -0400
  • 68f1691080 upload to codecov Alex Flint 2020-04-17 16:26:49 -0400
  • f78dec8769
    Merge pull request #113 from alexflint/prettify-readme-header Alex Flint 2020-04-17 16:18:07 -0400
  • 7a71aa1b20 add banner image Alex Flint 2020-04-17 16:09:24 -0400
  • 388f831e68 drop golangci since it is shutting down soon; fix pkg.go.dev link Alex Flint 2020-04-17 16:00:32 -0400
  • 40ed78b0fa use go.dev badge Alex Flint 2020-04-17 15:58:00 -0400
  • efbf84df4c drop blank lines Alex Flint 2020-04-17 15:54:02 -0400
  • 499991fce1 move some stuff around in the readme header; add sourcegraph Alex Flint 2020-04-17 15:52:34 -0400
  • 854aa644a6
    Merge pull request #110 from alexflint/github-actions Alex Flint 2020-04-03 12:31:52 -0400
  • 1fc1a6f6df put coverage badge back Alex Flint 2020-04-03 12:28:05 -0400
  • 9fccfd3d6a replace travis badge with github actions badge Alex Flint 2020-04-03 12:24:39 -0400
  • 65ef631f5f use ${{ matrix.go }} Alex Flint 2020-04-03 12:19:40 -0400
  • af757bea98 fix name of dependency Alex Flint 2020-04-03 12:13:23 -0400
  • ce896f3df9 add coverage using goveralls Alex Flint 2020-04-03 12:09:49 -0400
  • 7ac7956369 drop coverage badge (adding an issue to put it back) Alex Flint 2020-04-03 11:59:47 -0400
  • b43f8e2e65 drop travis and old test dir (module system support is now stable) Alex Flint 2020-04-03 11:58:27 -0400
  • 063a48797d clean up extraneous test output Alex Flint 2020-04-03 11:52:00 -0400
  • cfdee944f9
    Set up CI using github actions Alex Flint 2020-04-03 11:45:13 -0400
  • 6f3675fdf1
    Merge pull request #109 from alexflint/ignore-env Alex Flint 2020-03-01 16:47:25 -0600
  • 17bbf2e7ef add Config.IgnoreEnv to ignore environment variables Alex Flint 2020-03-01 16:32:59 -0600
  • ce4cd0ce03
    Merge pull request #106 from dallbee/subcommand-usage Alex Flint 2020-02-23 11:51:43 -0800
  • 82c2a36dd7
    Merge pull request #108 from alexflint/readme-placeholder-version Alex Flint 2020-02-23 11:47:36 -0800
  • db9f869c99
    Document that the placeholder tag requires v1.3.0 Alex Flint 2020-02-23 11:44:00 -0800
  • c24567c12e Fix lint warnings Dylan Allbee 2020-01-23 21:36:24 -0800
  • 5df19ebe00 Use command passed into p.Parse(...) write methods Dylan Allbee 2020-01-23 21:09:21 -0800
  • 338e831a84 Print global options in help for subcommands Dylan Allbee 2020-01-23 21:08:18 -0800
  • e9c71eb4fa
    Merge pull request #107 from alexflint/fix-issue-100 v1.3.0 Alex Flint 2020-01-24 14:47:36 -0800
  • cb4e079d13 add a further test Alex Flint 2020-01-24 14:42:49 -0800
  • 2cc1f136b1 make sure to deep copy the field indices Alex Flint 2020-01-24 14:34:56 -0800
  • 711618869d fix issue with duplicate fields in embedded structs Alex Flint 2020-01-24 14:30:29 -0800
  • 7e2466d707
    Merge pull request #105 from marco-m/document-subcommand-fail-early Alex Flint 2020-01-23 11:08:28 -0800
  • f5d3733c0a
    Merge pull request #104 from marco-m/subcommands-usage-simple Alex Flint 2020-01-23 11:07:40 -0800
  • 5943b1ad42 README: how to terminate a program when no subcommands are specified Marco Molteni 2020-01-23 18:16:28 +0100
  • 9f5522668a address review comments Marco Molteni 2020-01-23 16:35:45 +0100
  • cfd894f446 usage: if the program supports subcommands, mention it Marco Molteni 2020-01-19 19:40:53 +0100
  • 33db14a48b parse: fix typo in comment Marco Molteni 2020-01-19 19:38:19 +0100
  • ced05bfe8a
    Merge pull request #96 from Andrew-Morozko/master Alex Flint 2019-12-01 01:22:05 -0800
  • 9d4521ce8b Final improvements Andrew Morozko 2019-11-30 22:31:08 +0300
  • c49d847704 Removed "dataname" tag Andrew Morozko 2019-11-30 00:32:28 +0300
  • c3a019cdb8 Various changes Andrew Morozko 2019-11-30 00:22:21 +0300
  • 904e039267 Added the "dataname" tag Andrew Morozko 2019-11-29 22:33:16 +0300
  • c0c7a3ba8a
    Merge pull request #91 from alexflint/defaults v1.2.0 Alex Flint 2019-10-21 23:40:36 -0700
  • e0fc08f7ad add docs about old way of specifying defaults Alex Flint 2019-10-21 23:37:12 -0700
  • 7ac060af18 update documentation to new way of specifying defaults Alex Flint 2019-10-21 23:13:41 -0700
  • 809e9060d0 stop testing with tip on travis Alex Flint 2019-10-21 23:06:31 -0700
  • 45d0915afc
    Remove %w for compatibility with go<1.13 Alex Flint 2019-10-21 11:42:03 -0700
  • 84e7a764db minor cleanups Alex Flint 2019-10-19 23:30:33 -0700
  • cc768447a7 store default values during NewParser Alex Flint 2019-10-19 23:23:32 -0700
  • 5d3ebcceee undo changes to go.mod Alex Flint 2019-10-08 16:47:31 -0700
  • 0c95297990 add support for default values in struct tags Alex Flint 2019-10-08 16:39:00 -0700
  • 873f3c2cf4
    Merge pull request #90 from alexflint/fix-89 Alex Flint 2019-10-05 09:26:10 -0700
  • 233d378a50 fix issue 89 (multiple args terminated by "--") Alex Flint 2019-10-04 13:18:17 -0700
  • 8baf7040d7
    Merge pull request #82 from alexflint/subcommand-impl v1.1.0 Alex Flint 2019-08-06 16:58:46 -0700
  • 11a27074fc test with go 1.12 Alex Flint 2019-08-06 16:49:02 -0700
  • e6003d3b6a add subcommands to readme Alex Flint 2019-08-06 16:41:50 -0700
  • 9f37d5f600 fix typo Alex Flint 2019-08-06 16:38:11 -0700
  • fcdfbc090b fix comment Alex Flint 2019-08-06 16:00:13 -0700
  • 990e87d80d no need to initialize nil structs during path traversal Alex Flint 2019-05-03 16:32:16 -0700
  • bd97edec87 add Parser.Subcommand and Parser.SubcommandNames Alex Flint 2019-05-03 16:08:29 -0700
  • 3c5e61a292 simplify Fprint call Alex Flint 2019-05-03 15:50:41 -0700
  • b83047068d print help and usage at subcommand level if necessary Alex Flint 2019-05-03 15:49:44 -0700
  • 15bf383f1d add subcommands to usage string Alex Flint 2019-05-03 15:02:10 -0700
  • edd1af4667 Merge remote-tracking branch 'origin/master' into subcommand-impl Alex Flint 2019-05-03 13:16:52 -0700
  • 6de9e789a9
    Merge pull request #83 from alexflint/tweak-examples Alex Flint 2019-05-03 13:14:44 -0700
  • 3392c173d7 add expected output for usage example Alex Flint 2019-05-03 13:07:12 -0700
  • e2ce620ee4 add expected outputs to all examples Alex Flint 2019-05-03 12:56:41 -0700
  • c6473c4586 add tests for nested subcommands and subcommands with positionals Alex Flint 2019-05-03 11:21:34 -0700
  • e55b361498 fix error message Alex Flint 2019-05-02 09:50:44 -0700
  • a68d6000b6 test use of --version Alex Flint 2019-05-02 09:47:39 -0700
  • 93fcb0e87d use backticks rather than backslashes in string literal Alex Flint 2019-05-02 09:46:11 -0700
  • c8c61cf8bb add test for case where environment var is not present Alex Flint 2019-05-02 09:44:48 -0700
  • f2f7bdbbd7 add test case for missing value in middle of argument string Alex Flint 2019-05-02 09:39:12 -0700
  • a15b6ad670 add test for canParse with TextUnmarshaler Alex Flint 2019-05-02 09:32:23 -0700
  • 87be2d9790 add unittests for canParse Alex Flint 2019-05-02 09:28:17 -0700
  • 5b649de043 test no such subcommand Alex Flint 2019-05-02 09:16:33 -0700
  • 237c5e2b23 Merge remote-tracking branch 'origin/master' into subcommand-impl Alex Flint 2019-04-30 13:54:49 -0700
  • fb1ae1c3e0
    Merge pull request #81 from alexflint/subcommands Alex Flint 2019-04-30 13:54:40 -0700
  • 15b9bcfbb4 add several subcommand unittests Alex Flint 2019-04-30 13:53:14 -0700
  • 39decf197f add several subcommand unittests Alex Flint 2019-04-30 13:49:55 -0700
  • a78c6ded26 set subcommand structs to be struct pointers Alex Flint 2019-04-30 13:40:45 -0700
  • af12b7cfc2 introduced path struct Alex Flint 2019-04-30 13:30:23 -0700