Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Fuck me
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Sep 18, 2018
1 parent 6eb09ce commit 72269ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 41 deletions.
10 changes: 8 additions & 2 deletions rsi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def main() -> int:
_from_dmi = subparser.add_parser("from_dmi", help="Will create an RSI from a BYOND DMI file.")
_from_dmi.add_argument("input", help="The DMI file to read from.", type=Path)
_from_dmi.add_argument("output", help="The RSI to output to.", type=Path)
_from_dmi.add_argument("-c", "--copyright", help="Specifies the copyright of the new RSI file.")
_from_dmi.add_argument("-l", "--license", help="Specifies the license of the new RSI file.")

_new_rsi = subparser.add_parser("new", help="Will create a new RSI at the provided directory.")
_new_rsi.add_argument("rsi", help="The location of the new RSI. Must not exist yet.", type=Path)
Expand All @@ -25,7 +27,7 @@ def main() -> int:
args = parser.parse_args()

if args.command == "from_dmi":
from_dmi(args.input, args.output)
from_dmi(args.input, args.output, args.license, args.copyright)
return 0

if args.command == "new":
Expand All @@ -35,8 +37,12 @@ def main() -> int:
return 1


def from_dmi(inputf: Path, output: Path) -> None:
def from_dmi(inputf: Path, output: Path, new_license: Optional[str], new_copyright: Optional[str]) -> None:
rsi = Rsi.from_dmi(inputf)
if new_license:
rsi.license = new_license
if new_copyright:
rsi.copyright = new_copyright
rsi.write(output)


Expand Down
38 changes: 0 additions & 38 deletions scripts/RSI.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="RSI.py",
version="1.1.5",
version="1.1.6",
description="A library for manipulation of the RSI format used in Space Station 14.",
url="https://github.com/space-wizards/RSI.py",
author="Pieter-Jan Briers",
Expand Down

0 comments on commit 72269ff

Please sign in to comment.