-
Notifications
You must be signed in to change notification settings - Fork 353
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
Positional argument checks #262
Conversation
Codecov Report
@@ Coverage Diff @@
## master #262 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 12
Lines 2710 2739 +29
=====================================
+ Hits 2710 2739 +29
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #262 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 12
Lines 2710 2737 +27
=====================================
+ Hits 2710 2737 +27
Continue to review full report at Codecov.
|
@phlptp, can you fix the conflict? I’ll be back from yet another conference on Tuesday. |
f04ce3c
to
c28f81a
Compare
If merged this PR will add an option to require positional arguments to pass validation before matching. This would allow creating positionals for a file and number and allowing them to be entered in any order on the command line.
Modifications include adding
validate_positionals
function on Appmoving the
_validate
code into a separate function in options.removing the
set_results
function in options which was being used by config file functions but it was bypassing some of the result processing, which could cause some issues if the delimiter option was also being used.Also tweaked the template for add_option to separate out the lexical_cast type from the assignment type if desired. (Probably need a few more tests of this yet).