aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-05 22:14:03 +0000
committerDavid Robillard <d@drobilla.net>2010-10-05 22:14:03 +0000
commite2f7e9f6d927f6b80d50afce23461ebcf7f2a4df (patch)
treedf142a371b55f2d10d420dd188efd87877e2855d
parent6f0b0505bb22be3bdc3d58026b95c1a396653373 (diff)
downloadlv2-e2f7e9f6d927f6b80d50afce23461ebcf7f2a4df.tar.xz
More normal usage message.
-rwxr-xr-xlv2compatgen/lv2compatgen.py5
-rwxr-xr-xlv2specgen/lv2specgen.py4
2 files changed, 3 insertions, 6 deletions
diff --git a/lv2compatgen/lv2compatgen.py b/lv2compatgen/lv2compatgen.py
index 60bad70..1b22c8c 100755
--- a/lv2compatgen/lv2compatgen.py
+++ b/lv2compatgen/lv2compatgen.py
@@ -43,9 +43,8 @@ lv2 = RDF.NS('http://lv2plug.in/ns/lv2core#')
doap = RDF.NS('http://usefulinc.com/ns/doap#')
foaf = RDF.NS('http://xmlns.com/foaf/0.1/')
-def print_usage():
- print """
-Usage: lv2compatgen.py DATA
+def usage():
+ print """Usage: lv2compatgen.py DATA
DATA must be a Redland RDF store containing all relevant LV2 data
(a file would be too slow to parse).
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 7a05ff9..9adae8d 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -783,8 +783,7 @@ def getOntologyNS(m):
def usage():
script = os.path.basename(sys.argv[0])
- print """Usage:
- %s ONTOLOGY TEMPLATE STYLE OUTPUT [FLAGS]
+ print """Usage: %s ONTOLOGY TEMPLATE STYLE OUTPUT [FLAGS]
ONTOLOGY : Path to ontology file
TEMPLATE : HTML template path
@@ -798,7 +797,6 @@ def usage():
Example:
%s lv2_foos.ttl template.html style.css lv2_foos.html ../docs -i -p foos
-
""" % (script, script)
sys.exit(-1)