summaryrefslogtreecommitdiff
path: root/first-diff.py
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2023-10-19 23:37:21 -0600
committerGitHub <noreply@github.com>2023-10-19 23:37:21 -0600
commit76dc587a342d45c73c4e459e0bba233343be90da (patch)
tree2a035f186839747d7b9c40b1ed32586908d205e0 /first-diff.py
parent291c1d40d67487597e5e8708ec7ee1e28fbbe40c (diff)
EU 1.0 OK (#265)
* EU 1.0 ok * EU 1.1 ok Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
Diffstat (limited to 'first-diff.py')
-rwxr-xr-xfirst-diff.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/first-diff.py b/first-diff.py
index a3a948c04..a208f4035 100755
--- a/first-diff.py
+++ b/first-diff.py
@@ -17,6 +17,22 @@ versionGroup.add_argument(
const="us",
dest="version",
)
+versionGroup.add_argument(
+ "-e",
+ "--eu10",
+ help="use European (1.0) version",
+ action="store_const",
+ const="eu-1.0",
+ dest="version",
+)
+versionGroup.add_argument(
+ "-E",
+ "--eu11",
+ help="use European (1.1) version",
+ action="store_const",
+ const="eu-final",
+ dest="version",
+)
parser.add_argument(
"-m", "--make", help="run make before finding difference(s)", action="store_true"
)
@@ -252,7 +268,10 @@ if diffs == 0:
exit()
definite_shift = diffs > shift_cap
if not definite_shift:
- print(str(diffs) + " differing word(s).")
+ if (diffs > 1):
+ print(str(diffs) + " differing words.")
+ else:
+ print(str(diffs) + " differing word.")
if diffs > 100:
if len(found_instr_diff) > 0: