changeset 762:1758ead4ad2f

fixes
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Jan 2016 12:56:15 -0800
parents 9e4a21ca48af
children e047129c84bc
files python/s5ify.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/python/s5ify.py	Mon Jan 04 12:54:51 2016 -0800
+++ b/python/s5ify.py	Mon Jan 04 12:56:15 2016 -0800
@@ -18,12 +18,12 @@
 
     # parse command line
     parser = argparse.ArgumentParser(description=__doc__)
-    parser.add_option('input')
-    options = parser.parse_parse(args)
+    parser.add_argument('input')
+    options = parser.parse_args(args)
 
     # sanity
     input = options.input
-    if not os.path.isfile(input)
+    if not os.path.isfile(input):
         parser.error("Not a file: '{}'".format(input))
     input = os.path.abspath(options.input)