Exit properly on errors in icom.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 15 Dec 2009 04:32:41 +0000 (04:32 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 15 Dec 2009 04:32:41 +0000 (04:32 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1124 959494ce-11ee-0310-bf91-de5d638817bd

icom
icom-dir

diff --git a/icom b/icom
index 1b2bdb5..3800ea7 100755 (executable)
--- a/icom
+++ b/icom
@@ -4,6 +4,7 @@ import sys
 
 if len(sys.argv) < 3:
     sys.stderr.write("usage: icom FILE1 FILE2\n")
+    sys.exit(1)
 
 tsz = (25, 25)
 
index 7565651..bcdb31a 100755 (executable)
--- a/icom-dir
+++ b/icom-dir
@@ -10,6 +10,7 @@ def combine(list):
 
 if len(sys.argv) < 2:
     sys.stderr.write("usage: icom-dir DIRECTORY\n")
+    sys.exit(1)
 
 files = os.listdir(sys.argv[1])
 files.sort()