Skip to content

Commit

Permalink
Added new utility to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
idarthjedi committed Nov 12, 2023
1 parent 96d8cf2 commit d59d4f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ options:
```

## standalone/traderplusparts_to_vehicle_expansion.py
```
usage: traderplusparts_to_vehicle_expansion.py [-h] -f FILE [-m MULTIPLIER]
Takes as input the name of a traderplus Vehicle Parts file, and will output an Expansion trader file of the same name all the individual parts created as
SpawnAttachments.
options:
-h, --help show this help message and exit
-f FILE, --file FILE Specify the TraderPlus file name to convert.
-m MULTIPLIER, --multiplier MULTIPLIER
Specify the optional price multiplier for the TraderPlus to Expansion conversion
```

## standalone/types_to_market.py
```
usage: types_to_market.py [-h] [-f FILE] [-p PRICE] [-c CATEGORY]
Expand Down
11 changes: 4 additions & 7 deletions standalone/traderplusparts_to_vehicle_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,10 @@ def _safe_filename(source: str) -> str:

if __name__ == "__main__":
colorama_init()
parser = argparse.ArgumentParser(prog="traderplus_to_expansion.py",
description="Takes as input the name of a traderplus file, and will output an "\
"Expansion trader file of the same name with category extensions (e.g.) "\
"FILE=geb_trader, output=geb_trader_fish.json, geb_trader_fishmeat.json, etc. "\
"Code optionally takes a multiplier (float) to apply against the priceses listed in "\
"the traderplus file e.g. 1.5 multiper will make the prices 1.5 times higher than "\
"in the original traderplus file."
parser = argparse.ArgumentParser(prog="traderplusparts_to_vehicle_expansion.py",
description="Takes as input the name of a traderplus Vehicle Parts file, and will output an "\
"Expansion trader file of the same name all the individual parts "\
"created as SpawnAttachments."
)
parser.add_argument("-f", "--file",
help="Specify the TraderPlus file name to convert.",
Expand Down

0 comments on commit d59d4f6

Please sign in to comment.