Skip to content

Commit 2ecfaf2

Browse files
committed
[scripts] Update cli description
1 parent 786bcdd commit 2ecfaf2

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

odml/scripts/odml_conversion.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
33
odmlConversion searches for odML files within a provided SEARCHDIR
44
and converts them to the newest odML format version.
5-
Original files will never be overwritten.
5+
Original files will never be overwritten. New files will be
6+
written either to a new directory at the current or a specified
7+
location.
68
79
Usage: odmlconversion [-r] [-o OUT] SEARCHDIR
810
@@ -13,7 +15,8 @@
1315
-o OUT Output directory. Must exist if specified.
1416
If not specified, output files will be
1517
written to the current directory.
16-
-r Search recursively.
18+
-r Search recursively. Directory structures
19+
will not be retained.
1720
-h --help Show this screen.
1821
--version Show version.
1922
"""
@@ -23,14 +26,15 @@
2326
import sys
2427
import tempfile
2528

29+
from docopt import docopt
30+
2631
try:
2732
from StringIO import StringIO
2833
except ImportError:
2934
from io import StringIO
3035

3136
import odml
3237

33-
from docopt import docopt
3438
from odml.tools.version_converter import VersionConverter as VerConf
3539

3640
try:

odml/scripts/odml_to_rdf.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
odmlToRDF searches for odML files within a provided SEARCHDIR
44
and converts them to the newest odML format version and
55
exports all found and resulting odML files to XML formatted RDF.
6-
Original files will never be overwritten.
6+
Original files will never be overwritten. New files will be
7+
written either to a new directory at the current or a specified
8+
location.
79
810
Usage: odmltordf [-r] [-o OUT] SEARCHDIR
911
@@ -14,7 +16,8 @@
1416
-o OUT Output directory. Must exist if specified.
1517
If not specified, output files will be
1618
written to the current directory.
17-
-r Search recursively.
19+
-r Search recursively. Directory structures
20+
will not be retained.
1821
-h --help Show this screen.
1922
--version Show version.
2023
"""
@@ -24,14 +27,15 @@
2427
import sys
2528
import tempfile
2629

30+
from docopt import docopt
31+
2732
try:
2833
from StringIO import StringIO
2934
except ImportError:
3035
from io import StringIO
3136

3237
import odml
3338

34-
from docopt import docopt
3539
from odml.tools.odmlparser import ODMLReader, ODMLWriter
3640
from odml.tools.version_converter import VersionConverter as VerConf
3741

0 commit comments

Comments
 (0)