diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2023-10-19 23:37:21 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-19 23:37:21 -0600 |
| commit | 76dc587a342d45c73c4e459e0bba233343be90da (patch) | |
| tree | 2a035f186839747d7b9c40b1ed32586908d205e0 /first-diff.py | |
| parent | 291c1d40d67487597e5e8708ec7ee1e28fbbe40c (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-x | first-diff.py | 21 |
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: |
