Improve argument help

This commit is contained in:
object-Object 2023-06-06 22:41:06 -04:00
parent 98b04d57cc
commit 971e780f66
3 changed files with 10 additions and 1 deletions

2
.gitignore vendored
View file

@ -29,6 +29,8 @@ plot/
# Python
/doc/*.html
!/doc/template.html
# Byte-compiled / optimized / DLL files
__pycache__/

View file

@ -13,3 +13,9 @@ source venv/bin/activate # anything other than Windows
pip install -r requirements.txt
```
## Usage
```sh
python src/main.py ../Common/src/main/resources hexcasting thehexbook template.html out.html
```

View file

@ -1,5 +1,6 @@
from pathlib import Path
from sys import stdout
from typing import Optional
from collate_data import parse_book, write_docs
from tap import Tap
@ -25,7 +26,7 @@ class Args(Tap):
self.add_argument("mod_name")
self.add_argument("book_name")
self.add_argument("template_file")
self.add_argument("output_file", nargs="?")
self.add_argument("output_file", help="(Path, optional)", nargs="?")
def main(args: Args) -> None: