Skip to content

Conversation

@henryiii
Copy link
Collaborator

@henryiii henryiii commented Jun 2, 2017

This fixes #12. There are two limitations to the enumeration support:

  • You can't pick an enumeration by name from the command line. This is a limitation of C++, reflexion would be need to be added to C++ to support this.
  • Only traditional style enums are supported, since they do not support << . This is a limitation that can be lifted at some point based on the number of arguments to the add_ command. This is now fixed; new style enums are supported too.

Help strings for enums cannot be automatically generated, however, you can set them yourself.

@codecov
Copy link

codecov bot commented Jun 2, 2017

Codecov Report

Merging #15 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #15   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines        1048   1108   +60     
  Branches      220    227    +7     
=====================================
+ Hits         1048   1108   +60
Impacted Files Coverage Δ
include/CLI/TypeTools.hpp 100% <ø> (ø) ⬆️
include/CLI/App.hpp 100% <100%> (ø) ⬆️
include/CLI/Validators.hpp 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c435239...0973f34. Read the comment docs.

@henryiii henryiii changed the title Adding enum support (basic only) Adding enum support Jun 2, 2017
@henryiii henryiii merged commit 5b714bb into master Jun 9, 2017
@henryiii henryiii deleted the basic-enum branch June 10, 2017 01:21
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.

Support for enumerations

2 participants