git » abk » commit 60d89a8

Friendy output.

author
2005-03-02 23:47:37 UTC
committer
2005-03-02 23:47:37 UTC
parent a170809660a6d793fcb29f0450ae2edb660bd9a3

Friendy output.

abk +6 -3

diff --git a/abk b/abk
index 2d1f3d8..cb13f8d 100644
--- a/abk
+++ b/abk
@@ -366,7 +366,7 @@ except:
 
 if cmd == 'show':
 	if len(sys.argv) < 2:
-		print help
+		print "Incorrect or missing parameters"
 		sys.exit(1)
 	show_idx(sys.argv[2])
 elif cmd == 'sync':
@@ -376,8 +376,11 @@ elif cmd == 'sync':
 		dst_path = sys.argv[4]
 		dstidx_path = sys.argv[5]
 	except:
-		print help
+		print "Incorrect or missing parameters"
 		sys.exit(1)
+	
 	make_sync(src_path, srcidx_path, dst_path, dstidx_path)
-
+else:
+	print "Unknown command"
+	sys.exit(1)