Skip to content

Commit ef8d24c

Browse files
Andrej730aothms
authored andcommitted
Add script usage information
1 parent f28aaa1 commit ef8d24c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

to_md.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
"""
2+
Usage: `python to_md.py s3data.json > output.md`
3+
4+
To generate 's3data.json', use the following AWS CLI command (no credentials required):
5+
aws s3api list-objects --output json --bucket ifcopenshell-builds --no-sign-request > s3data.json
6+
7+
"""
8+
19
import functools
210
import itertools
311
import operator
@@ -68,6 +76,10 @@ def _():
6876
yield f'v{version.public}', version.local, c['LastModified'], f'{module_name}-{abi}', 'WASM', c['Size'], k
6977

7078

79+
if len(sys.argv) != 2:
80+
print(__doc__)
81+
exit(1)
82+
7183
print("# IfcOpenShell Builds")
7284
print("Source code - [IfcOpenShell/build-listing](https://github.com/IfcOpenShell/build-listing)")
7385
print()

0 commit comments

Comments
 (0)