]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/bup
Add handle_ctrl_c to bup itself
[bup.git] / lib / cmd / bup
index ebe52a034bc015fb73c601926bb785e44aa2cbf1..c084e312a24ae33113e98bf6279c011a962fc0c4 100755 (executable)
@@ -44,10 +44,19 @@ from bup.compat import (
     fsdecode,
     wrap_main
 )
-from bup.helpers import columnate, debug1, log, merge_dict, tty_width
+from bup.compat import add_ex_tb, add_ex_ctx, argv_bytes, wrap_main
+from bup.helpers import (
+    columnate,
+    debug1,
+    handle_ctrl_c,
+    log,
+    merge_dict,
+    tty_width
+)
 from bup.io import byte_stream, path_msg
 from bup.options import _tty_width
 
+handle_ctrl_c()
 
 cmdpath = path.cmddir()