Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the road to V1 #33

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

On the road to V1 #33

wants to merge 11 commits into from

Conversation

thrawn01
Copy link
Owner

@thrawn01 thrawn01 commented Jun 4, 2017

Purpose

Get the library ready for a v1.0 release

Implementation

  • Config for the parser is now fluent-style
  • Renamed AddOption to AddFlag
  • Added Usage() to set custom usage message
  • Renamed args.ArgParser to args.Parser
  • Renamed SetLog() to Log()
  • Made some methods private
  • Added PrefixChars() to overide the flag prefix
  • Added Epilog() to display after help message
  • Added Short() to specify abrev alias for flags
  • args.Parse() not longer returns nil *Options
  • Removed args.HelpError and related functions
  • Parse() and related methods no longer accept a pointer to an slice
  • Added Options.SubCommands() and Options.SetSubCommands()
  • Asking for help exits with return code 0 instead of 1
  • Made HasHelpFlag() public
  • Added Parser.Parent() and Parser.Parents()
  • Removed RuleModifier.Key()
  • Added new struct args.Key for backends to use
  • Improved validation error messages
  • No longer allowing shell special characters in rule names
  • INI Parser now watches and reports config changes not just file modifications

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 68.562% when pulling 08f5359 on road-to-v1 into d582419 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 68.629% when pulling 84594cc on road-to-v1 into d582419 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.0%) to 68.741% when pulling 484c895 on road-to-v1 into d582419 on master.

* Config for the parser is now fluent-style
* Renamed AddOption to AddFlag
* Added Usage() to set custom usage message
* Renamed args.ArgParser to args.Parser
* Renamed SetLog() to Log()
* Made some methods private
* Added PrefixChars() to overide the flag prefix
* Added Epilog() to display after help message
* Added Short() to specify abrev alias for flags
* Removed args.HelpError and related functions
* Parse() and related methods no longer accept a pointer to an slice
* Added Options.SubCommands() and Options.SetSubCommands()
* Asking for help exits with return code 0 instead of 1
* Made HasHelpFlag() public
* Added Parser.Parent() and Parser.Parents()
* Removed RuleModifier.Key()
* Added new struct args.Key for backends to use
* Improved validation error messages
* No longer allowing shell special characters in rule names
@thrawn01 thrawn01 force-pushed the road-to-v1 branch 2 times, most recently from 0466ab2 to 7352e70 Compare August 21, 2017 23:19
@coveralls
Copy link

Coverage Status

Coverage increased (+1.07%) to 68.854% when pulling c382b60 on road-to-v1 into 1cbcd84 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.05%) to 68.837% when pulling db4c7b2 on road-to-v1 into 1cbcd84 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.2%) to 68.945% when pulling b2cd381 on road-to-v1 into 1cbcd84 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants