summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-03clean up extraneous test outputAlex Flint
2020-04-03Set up CI using github actionsAlex Flint
2020-03-01Merge pull request #109 from alexflint/ignore-envAlex Flint
Option to ignore environment variables
2020-03-01add Config.IgnoreEnv to ignore environment variablesAlex Flint
2020-02-23Merge pull request #106 from dallbee/subcommand-usageAlex Flint
Subcommand usage options
2020-02-23Merge pull request #108 from alexflint/readme-placeholder-versionAlex Flint
Document that the placeholder tag requires v1.3.0
2020-02-23Document that the placeholder tag requires v1.3.0Alex Flint
2020-01-25Fix lint warningsDylan Allbee
2020-01-25Use command passed into p.Parse(...) write methodsDylan Allbee
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-25Print global options in help for subcommandsDylan Allbee
fixes #101
2020-01-24Merge pull request #107 from alexflint/fix-issue-100v1.3.0Alex Flint
fix issue with duplicate fields in embedded structs
2020-01-24add a further testAlex Flint
2020-01-24make sure to deep copy the field indicesAlex Flint
2020-01-24fix issue with duplicate fields in embedded structsAlex Flint
2020-01-23Merge pull request #105 from marco-m/document-subcommand-fail-earlyAlex Flint
README: how to terminate a program when no subcommands are specified
2020-01-23Merge pull request #104 from marco-m/subcommands-usage-simpleAlex Flint
Subcommands usage simple
2020-01-23README: how to terminate a program when no subcommands are specifiedMarco Molteni
Fixes #103
2020-01-23address review commentsMarco Molteni
2020-01-19usage: if the program supports subcommands, mention itMarco Molteni
2020-01-19parse: fix typo in commentMarco Molteni
2019-12-01Merge pull request #96 from Andrew-Morozko/masterAlex Flint
Added the "placeholder" tag
2019-11-30Final improvementsAndrew Morozko
2019-11-30Removed "dataname" tagAndrew Morozko
2019-11-30Various changesAndrew Morozko
2019-11-29Added the "dataname" tagAndrew Morozko
2019-10-21Merge pull request #91 from alexflint/defaultsv1.2.0Alex Flint
Allow default values in struct tags
2019-10-21add docs about old way of specifying defaultsAlex Flint
2019-10-21update documentation to new way of specifying defaultsAlex Flint
2019-10-21stop testing with tip on travisAlex Flint
2019-10-21Remove %w for compatibility with go<1.13Alex Flint
2019-10-19minor cleanupsAlex Flint
2019-10-19store default values during NewParserAlex Flint
2019-10-08undo changes to go.modAlex Flint
2019-10-08add support for default values in struct tagsAlex Flint
2019-10-05Merge pull request #90 from alexflint/fix-89Alex Flint
Multiple args are terminated by "--"
2019-10-04fix issue 89 (multiple args terminated by "--")Alex Flint
2019-08-06Merge pull request #82 from alexflint/subcommand-implv1.1.0Alex Flint
Add support for subcommands
2019-08-06test with go 1.12Alex Flint
2019-08-06add subcommands to readmeAlex Flint
2019-08-06fix typoAlex Flint
2019-08-06fix commentAlex Flint
2019-05-03no need to initialize nil structs during path traversalAlex Flint
2019-05-03add Parser.Subcommand and Parser.SubcommandNamesAlex Flint
2019-05-03simplify Fprint callAlex Flint
2019-05-03print help and usage at subcommand level if necessaryAlex Flint
2019-05-03add subcommands to usage stringAlex Flint
2019-05-03Merge remote-tracking branch 'origin/master' into subcommand-implAlex Flint
# Conflicts: # parse.go
2019-05-03Merge pull request #83 from alexflint/tweak-examplesAlex Flint
Add expected outputs to all runnable examples
2019-05-03add expected output for usage exampleAlex Flint
2019-05-03add expected outputs to all examplesAlex Flint