Use pipeable.ctrlc_return1.

This commit is contained in:
voussoir 2020-11-30 22:05:54 -08:00
parent fc9fb0ec58
commit 37dc5eaa35

View file

@ -6,6 +6,7 @@ import re
import sys
from voussoirkit import getpermission
from voussoirkit import pipeable
from voussoirkit import spinal
from voussoirkit import winglob
@ -36,6 +37,7 @@ def contentreplace(filename, replace_from, replace_to, autoyes=False, do_regex=F
with f:
f.write(content)
@pipeable.ctrlc_return1
def contentreplace_argparse(args):
if args.recurse:
files = spinal.walk_generator('.')