summaryrefslogtreecommitdiff
path: root/tabbed/cli.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-07-16 17:23:10 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-07-16 17:23:10 -0400
commit1731782113189256e11d7070ff19dfee8658a230 (patch)
treefcffe29740b7a72f5dd2b34db96aeecd4e05d58e /tabbed/cli.py
parent2d7fc6d10808d57f5af6034e6ac09c451658ff82 (diff)
downloadtablib-1731782113189256e11d7070ff19dfee8658a230.tar.gz
general update
Diffstat (limited to 'tabbed/cli.py')
-rw-r--r--tabbed/cli.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tabbed/cli.py b/tabbed/cli.py
index 47c6df7..77b354d 100644
--- a/tabbed/cli.py
+++ b/tabbed/cli.py
@@ -32,7 +32,7 @@ def start(in_file=None, out_file=None, **opts):
if opts.version:
print('Tabbed, Ver. %s' % tabbed.core.__version__)
- exit(0)
+ sys.sys.exit(0)
stdin = piped()
@@ -45,7 +45,7 @@ def start(in_file=None, out_file=None, **opts):
in_file = io.open(in_file, 'r')
except Exception, e:
print(' %s cannot be read.' % in_file)
- exit(65)
+ sys.exit(65)
file_ext = in_file.name.split('.')[-1]
@@ -53,10 +53,10 @@ def start(in_file=None, out_file=None, **opts):
setattr(opts, file_ext, True)
else:
print('Import format not supported.')
- exit(65)
+ sys.exit(65)
else:
print('Please provide input.')
- exit(65)
+ sys.exit(65)
@@ -65,12 +65,12 @@ def start(in_file=None, out_file=None, **opts):
# Multiple output formats given
if _formats_sum > 1:
print('Please specify a single output format.')
- exit(64)
+ sys.exit(64)
# No output formats given
elif _formats_sum < 1:
print('Please specify an output format.')
- exit(64)
+ sys.exit(64)
# fetch options.formats list