]> arthur.barton.de Git - bup.git/blobdiff - main.py
Bloom filter & server index: Hide some progress messages
[bup.git] / main.py
diff --git a/main.py b/main.py
index 0a63de2806dc4478adfa684989a44aa6a776f73a..d7dc1eba5dabfd522727a7ae42a50f9cb339da4a 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -76,7 +76,7 @@ try:
     optspec = ['help', 'version', 'debug', 'profile', 'bup-dir=']
     global_args, subcmd = getopt.getopt(argv[1:], '?VDd:', optspec)
 except getopt.GetoptError, ex:
-    usage('error: %s' % ex.msg)
+    usage('Error: %s!' % ex.msg)
 
 help_requested = None
 do_profile = False
@@ -94,7 +94,7 @@ for opt in global_args:
     elif opt[0] in ['-d', '--bup-dir']:
         os.environ['BUP_DIR'] = opt[1]
     else:
-        usage('error: unexpected option "%s"' % opt[0])
+        usage('Error: Unexpected option "%s"!' % opt[0])
 
 # Make BUP_DIR absolute, so we aren't affected by chdir (i.e. save -C, etc.).
 if 'BUP_DIR' in os.environ:
@@ -124,7 +124,7 @@ def subpath(s):
 
 subcmd[0] = subpath(subcmd_name)
 if not os.path.exists(subcmd[0]):
-    usage('error: unknown command "%s"' % subcmd_name)
+    usage('Error: Unknown command "%s"!' % subcmd_name)
 
 already_fixed = atoi(os.environ.get('BUP_FORCE_TTY'))
 if subcmd_name in ['mux', 'ftp', 'help']:
@@ -157,7 +157,7 @@ p = None
 forward_signals = True
 
 def handler(signum, frame):
-    debug1('bup: Signal %d received.' % signum)
+    debug1('bup: Signal %d received!' % signum)
     if not p or not forward_signals:
         return
     if signum != signal.SIGTSTP: