mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Fix option documentation.
This commit is contained in:
parent
d94f44692e
commit
940df876a1
2 changed files with 14 additions and 14 deletions
16
README.md
16
README.md
|
@ -149,15 +149,15 @@ python roentgen.py render -b 2.284,48.86,2.29,48.865
|
||||||
|---|---|
|
|---|---|
|
||||||
| `-h`, `--help` | show this help message and exit |
|
| `-h`, `--help` | show this help message and exit |
|
||||||
| `-i`, `--input` | input XML file name or names (if not specified, file will be downloaded using OpenStreetMap API) |
|
| `-i`, `--input` | input XML file name or names (if not specified, file will be downloaded using OpenStreetMap API) |
|
||||||
| `-o`, `--output` | output SVG file name, default value: \tt {out/map.svg} |
|
| `-o`, `--output` | output SVG file name, default value: `out/map.svg` |
|
||||||
| `-b`, `--boundary-box` | geo boundary box, use space before "-" if the first value is negative |
|
| `-b`, `--boundary-box` | geo boundary box, use space before "-" if the first value is negative |
|
||||||
| `-s`, `--scale` | OSM zoom level (may not be integer), default value: \tt {18} |
|
| `-s`, `--scale` | OSM zoom level (may not be integer), default value: `18` |
|
||||||
| `--cache` | path for temporary OSM files, default value: \tt {cache} |
|
| `--cache` | path for temporary OSM files, default value: `cache` |
|
||||||
| `--labels` | label drawing mode: `no`, `main`, or `all`, default value: \tt {main} |
|
| `--labels` | label drawing mode: `no`, `main`, or `all`, default value: `main` |
|
||||||
| `--overlap` | how many pixels should be left around icons and text, default value: \tt {12} |
|
| `--overlap` | how many pixels should be left around icons and text, default value: `12` |
|
||||||
| `--mode` | map drawing mode, default value: \tt {normal} |
|
| `--mode` | map drawing mode, default value: `normal` |
|
||||||
| `--seed` | seed for random, default value: \tt {} |
|
| `--seed` | seed for random |
|
||||||
| `--level` | display only this floor level, default value: \tt {None} |
|
| `--level` | display only this floor level |
|
||||||
|
|
||||||
Tile generation
|
Tile generation
|
||||||
---------------
|
---------------
|
||||||
|
|
|
@ -50,12 +50,12 @@ class ArgumentParser(argparse.ArgumentParser):
|
||||||
row = [[x for y in array for x in y][:-1]]
|
row = [[x for y in array for x in y][:-1]]
|
||||||
|
|
||||||
if "help" in option:
|
if "help" in option:
|
||||||
help_value: str = option["help"]
|
help_value: List = [option["help"]]
|
||||||
if "default" in option and option["default"] != "==SUPPRESS==":
|
if "default" in option and option["default"] and option["default"] != "==SUPPRESS==":
|
||||||
help_value += (
|
help_value += [
|
||||||
f", default value: \\tt {{{option['default']}}}"
|
f", default value: ", Tag("tt", [str(option['default'])])
|
||||||
)
|
]
|
||||||
row.append([help_value])
|
row.append(help_value)
|
||||||
else:
|
else:
|
||||||
row.append([])
|
row.append([])
|
||||||
table.append(row)
|
table.append(row)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue