Permalink
Browse files

use >=dargparse-0.2.2 which has argument value type support, value type

checking and conversion are done automatically now
  • Loading branch information...
1 parent f618280 commit 233b37614a8e716d94c4da84fa08cb1d353d2461 @xupeng xupeng committed Jul 18, 2013
Showing with 4 additions and 2 deletions.
  1. +3 −1 bin/dex
  2. +1 −1 setup.py
View
@@ -127,6 +127,7 @@ PARSER_DEFINITION ={
"--slowms"
],
"nargs": 1,
+ "valueType": int,
"default": 0
},
{
@@ -139,6 +140,7 @@ PARSER_DEFINITION ={
"--timeout"
],
"nargs": 1,
+ "valueType": float,
"default": 0
},
{
@@ -194,7 +196,7 @@ def main(args):
"therefore you may receive recommendations for indexes "
"that already exist. (see -h/--help for more information)\n")
- md = dex.Dex(options.uri, options.verbose, namespaces, int(slowms), check, float(timeout))
+ md = dex.Dex(options.uri, options.verbose, namespaces, slowms, check, timeout)
if options.use_profile:
if options.uri is None:
View
@@ -35,5 +35,5 @@
scripts=['bin/dex'],
url='https://github.com/mongolab/dex',
license='MIT',
- install_requires=["pymongo", "pyyaml", "dargparse","ordereddict"]
+ install_requires=["pymongo", "pyyaml", "dargparse>=0.2.2","ordereddict"]
)

0 comments on commit 233b376

Please sign in to comment.