changeset 5:b407681e6f2c

fix parameter type
author Jeff Hammel <k0scist@gmail.com>
date Tue, 23 Aug 2016 16:36:39 -0700
parents 8dc420754023
children 6496dae95f0d
files fail.py setup.py
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fail.py	Tue Aug 23 16:29:13 2016 -0700
+++ b/fail.py	Tue Aug 23 16:36:39 2016 -0700
@@ -17,7 +17,9 @@
     # parse command line
     parser = argparse.ArgumentParser(description=__doc__)
     parser.add_argument('command', help="command to run")
-    parser.add_argument('--code', dest='codes', default=(0,), nargs='+',
+    parser.add_argument('--code', dest='codes',
+                        default=(0,), nargs='+',
+                        type=int,
                         help="allowed exit codes [DEFAULT: 0]")
     parser.add_argument('-s', '--sleep', dest='sleep',
                         type=float, default=1.,
--- a/setup.py	Tue Aug 23 16:29:13 2016 -0700
+++ b/setup.py	Tue Aug 23 16:36:39 2016 -0700
@@ -7,7 +7,7 @@
 except IOError:
     description = None
 
-version = '0.1.1'
+version = '0.1.2'
 
 deps = []