@@ -59,6 +59,9 @@ def run(argv):
59
59
)
60
60
parser .add_argument ("--head" , type = int , help = "Display first n lines of output" )
61
61
parser .add_argument ("--tail" , type = int , help = "Display last n lines of output" )
62
+ parser .add_argument (
63
+ "--nomp" , action = "store_true" , help = "Do not use multi process optimizations"
64
+ )
62
65
parser .add_argument ("PREFILE" , help = "Font file path 1" )
63
66
parser .add_argument ("POSTFILE" , help = "Font file path 2" )
64
67
@@ -113,6 +116,10 @@ def run(argv):
113
116
include_list = get_tables_argument_list (args .include )
114
117
exclude_list = get_tables_argument_list (args .exclude )
115
118
119
+ # flip logic of the command line flag for multi process
120
+ # optimizations for use as a u_diff function argument
121
+ use_mp = not args .nomp
122
+
116
123
# perform the unified diff analysis
117
124
try :
118
125
diff = u_diff (
@@ -121,6 +128,7 @@ def run(argv):
121
128
context_lines = args .lines ,
122
129
include_tables = include_list ,
123
130
exclude_tables = exclude_list ,
131
+ use_multiprocess = use_mp ,
124
132
)
125
133
except Exception as e :
126
134
sys .stderr .write (f"[*] ERROR: { e } { os .linesep } " )
0 commit comments