Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 0bb03a9

Browse files
committed
Add usage
1 parent ea6f0fb commit 0bb03a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/dist2xml.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
import sys
55
import os
66

7+
if len(sys.argv) < 2:
8+
print("Usage: dist2xml.py version_number [cdn_url]")
9+
print(" version_number should match the latest version of runestone components")
10+
print(" cdn_url defaults to https://runestone.academy/cdn/runestone")
11+
print(" The environment variable COMPDIR can be set to the root of RunestoneComponents")
12+
print(" Otherwise you are best off running this command from the root of the RunestoneComponents distribution")
13+
sys.exit(1)
14+
715
if "COMPDIR" in os.environ:
816
data_path = os.path.join(os.environ["COMPDIR"], "runestone/dist")
917
else:

0 commit comments

Comments
 (0)