add ability for argparse to validate args

Fixes #4211
This commit is contained in:
Kurtis Rader
2017-07-16 21:10:22 -07:00
parent 2dfb615d7b
commit 4e1303823b
6 changed files with 198 additions and 29 deletions

View File

@@ -51,3 +51,7 @@ argv 'argle' 'bargle'
_flag_m 765
_flag_max 765
argv 'argle' 'bargle'
# Check the exit status from argparse validation
_flag_name max
_flag_value 83
expected argparse return status 57