Alex Flint
b91c03d2c6
Merge pull request #123 from alexflint/drop-vendor
...
Drop vendor directory
2020-09-27 09:28:24 -07:00
Alex Flint
7b1d8470a9
drop vendor directory
2020-08-12 15:49:47 -07:00
Alex Flint
96c756c382
Merge pull request #122 from alexflint/short-and-long
...
Add examples showing how to override the short and long versions of option
2020-08-06 16:52:47 -07:00
Alex Flint
c47edd0324
add documentation and examples showing how to override the short and long option names together
2020-08-06 16:41:45 -07:00
Alex Flint
a68c3d0653
Merge pull request #120 from alexflint/dedent-tag-loop
...
Move empty tag check inside loop
2020-07-06 09:59:15 -07:00
Alex Flint
6be0398e80
move empty tag check inside the loop
2020-07-06 09:54:23 -07:00
Alex Flint
2a3b5ea3cb
Merge pull request #116 from denysvitali/master
...
feat(usage): Include env variable in usage
2020-06-03 11:07:27 -04:00
Denys Vitali
d4bb56e096
feat(usage): Include env variable in usage
2020-06-03 10:05:20 +02:00
Alex Flint
912ef0c3e4
Merge pull request #114 from alexflint/migrate-to-codecov
...
Upload coverage to codecov
2020-04-17 16:41:42 -04:00
Alex Flint
2bc58b597b
replace coveralls badge with codecov
2020-04-17 16:37:00 -04:00
Alex Flint
65205f111c
fix github actions config
2020-04-17 16:33:48 -04:00
Alex Flint
68f1691080
upload to codecov
2020-04-17 16:26:49 -04:00
Alex Flint
f78dec8769
Merge pull request #113 from alexflint/prettify-readme-header
...
move some stuff around in the readme header; add sourcegraph badge
2020-04-17 16:18:07 -04:00
Alex Flint
7a71aa1b20
add banner image
2020-04-17 16:09:24 -04:00
Alex Flint
388f831e68
drop golangci since it is shutting down soon; fix pkg.go.dev link
2020-04-17 16:00:32 -04:00
Alex Flint
40ed78b0fa
use go.dev badge
2020-04-17 15:58:00 -04:00
Alex Flint
efbf84df4c
drop blank lines
2020-04-17 15:54:02 -04:00
Alex Flint
499991fce1
move some stuff around in the readme header; add sourcegraph
2020-04-17 15:52:34 -04:00
Alex Flint
854aa644a6
Merge pull request #110 from alexflint/github-actions
...
Set up CI using github actions
2020-04-03 12:31:52 -04:00
Alex Flint
1fc1a6f6df
put coverage badge back
2020-04-03 12:28:05 -04:00
Alex Flint
9fccfd3d6a
replace travis badge with github actions badge
2020-04-03 12:24:39 -04:00
Alex Flint
65ef631f5f
use ${{ matrix.go }}
2020-04-03 12:19:40 -04:00
Alex Flint
af757bea98
fix name of dependency
2020-04-03 12:13:23 -04:00
Alex Flint
ce896f3df9
add coverage using goveralls
2020-04-03 12:09:49 -04:00
Alex Flint
7ac7956369
drop coverage badge (adding an issue to put it back)
2020-04-03 11:59:47 -04:00
Alex Flint
b43f8e2e65
drop travis and old test dir (module system support is now stable)
2020-04-03 11:58:27 -04:00
Alex Flint
063a48797d
clean up extraneous test output
2020-04-03 11:52:00 -04:00
Alex Flint
cfdee944f9
Set up CI using github actions
2020-04-03 11:45:13 -04:00
Alex Flint
6f3675fdf1
Merge pull request #109 from alexflint/ignore-env
...
Option to ignore environment variables
2020-03-01 16:47:25 -06:00
Alex Flint
17bbf2e7ef
add Config.IgnoreEnv to ignore environment variables
2020-03-01 16:32:59 -06:00
Alex Flint
ce4cd0ce03
Merge pull request #106 from dallbee/subcommand-usage
...
Subcommand usage options
2020-02-23 11:51:43 -08:00
Alex Flint
82c2a36dd7
Merge pull request #108 from alexflint/readme-placeholder-version
...
Document that the placeholder tag requires v1.3.0
2020-02-23 11:47:36 -08:00
Alex Flint
db9f869c99
Document that the placeholder tag requires v1.3.0
2020-02-23 11:44:00 -08:00
Dylan Allbee
c24567c12e
Fix lint warnings
2020-01-25 11:53:34 -08:00
Dylan Allbee
5df19ebe00
Use command passed into p.Parse(...) write methods
...
It is currently impossible to programatically write help and usage
messages for subcommands, due to parser.WriteHelp and parser.WriteUsage
not taking the state of the parser into account.
Check for the existence of p.lastCmd and use it for the writers when
available.
Enables ability to write unit tests for subcommand help.
2020-01-25 11:53:34 -08:00
Dylan Allbee
338e831a84
Print global options in help for subcommands
...
fixes #101
2020-01-25 11:53:34 -08:00
Alex Flint
e9c71eb4fa
Merge pull request #107 from alexflint/fix-issue-100
...
fix issue with duplicate fields in embedded structs
2020-01-24 14:47:36 -08:00
Alex Flint
cb4e079d13
add a further test
2020-01-24 14:42:49 -08:00
Alex Flint
2cc1f136b1
make sure to deep copy the field indices
2020-01-24 14:34:56 -08:00
Alex Flint
711618869d
fix issue with duplicate fields in embedded structs
2020-01-24 14:30:29 -08:00
Alex Flint
7e2466d707
Merge pull request #105 from marco-m/document-subcommand-fail-early
...
README: how to terminate a program when no subcommands are specified
2020-01-23 11:08:28 -08:00
Alex Flint
f5d3733c0a
Merge pull request #104 from marco-m/subcommands-usage-simple
...
Subcommands usage simple
2020-01-23 11:07:40 -08:00
Marco Molteni
5943b1ad42
README: how to terminate a program when no subcommands are specified
...
Fixes #103
2020-01-23 18:16:28 +01:00
Marco Molteni
9f5522668a
address review comments
2020-01-23 16:35:45 +01:00
Marco Molteni
cfd894f446
usage: if the program supports subcommands, mention it
2020-01-19 19:40:53 +01:00
Marco Molteni
33db14a48b
parse: fix typo in comment
2020-01-19 19:38:19 +01:00
Alex Flint
ced05bfe8a
Merge pull request #96 from Andrew-Morozko/master
...
Added the "placeholder" tag
2019-12-01 01:22:05 -08:00
Andrew Morozko
9d4521ce8b
Final improvements
2019-11-30 22:31:08 +03:00
Andrew Morozko
c49d847704
Removed "dataname" tag
2019-11-30 00:32:28 +03:00
Andrew Morozko
c3a019cdb8
Various changes
2019-11-30 00:22:21 +03:00