Skip to content

Commit

Permalink
mtf2json: replaced '--mml-commit' with '--mm-commit' (MegaMek repo)
Browse files Browse the repository at this point in the history
  • Loading branch information
juk0de committed Jul 20, 2024
1 parent a1074a4 commit cece1b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mtf2json/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# this enables direct import from 'mtf2json' (instead of 'mtf2json.mtf2json')
from .mtf2json import read_mtf, write_json, ConversionError, version, mml_commit # noqa
from .mtf2json import read_mtf, write_json, ConversionError, version, mm_commit # noqa
10 changes: 5 additions & 5 deletions mtf2json/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import argparse
from pathlib import Path
import os
from .mtf2json import read_mtf, write_json, ConversionError, version, mml_commit
from .mtf2json import read_mtf, write_json, ConversionError, version, mm_commit
from typing import Optional, List, Tuple


Expand All @@ -28,9 +28,9 @@ def create_parser() -> argparse.ArgumentParser:
parser.add_argument('--version', '-V',
action='store_true',
help="Print version")
parser.add_argument('--mml-commit', '-C',
parser.add_argument('--mm-commit', '-C',
action='store_true',
help="Print latest supported MegaMekLab commit")
help="Print latest supported MegaMek commit")
parser.add_argument('--mtf-dir', '-M',
type=str,
help="Convert all MTF files in the given directory.",
Expand Down Expand Up @@ -114,8 +114,8 @@ def main() -> None:
if args.version:
print(f"{version}")
sys.exit(0)
if args.mml_commit:
print(f"{mml_commit}")
if args.mm_commit:
print(f"{mm_commit}")
sys.exit(0)

# either file conversion or directory conversion is allowed, but not both simultaneously
Expand Down
2 changes: 1 addition & 1 deletion mtf2json/mtf2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


version = "0.1.6"
mml_commit = "1ceb93b3ad182d54e16578718322847111d3d8a4"
mm_commit = "0c9645e76d643bc1680ec81c632fce8ddd07e228"


class ConversionError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion mtf2json/mtf2json.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from typing import Dict, Any


version: str
mml_commit: str
mm_commit: str


class ConversionError(Exception):
Expand Down

0 comments on commit cece1b2

Please sign in to comment.