File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
the server is started in.
6
6
7
7
Usage: odmlView [-d DIRECTORY] [-p PORT]
8
+ Usage: odmlview [-p PORT] [--fetch]
8
9
9
10
Options:
10
11
-p PORT Port the server will use.
11
12
Default is port 8000.
12
- -h --help Show this screen.
13
- --version Show version.
13
+ --fetch Fetch latest stylesheet from templates.g-node.org
14
+ to current directory
15
+ -h --help Show this screen
16
+ --version Show version
14
17
"""
15
18
16
19
import http .server as hs
@@ -57,6 +60,10 @@ def run(port=PORT):
57
60
def main (args = None ):
58
61
parser = docopt (__doc__ , argv = args , version = "0.1.0" )
59
62
63
+ # Fetch stylesheet
64
+ if parser ['--fetch' ] and not os .path .exists (STYLESHEET ):
65
+ fetch_stylesheet ()
66
+
60
67
server_port = int (parser ['-p' ]) if parser ['-p' ] else PORT
61
68
62
69
run (server_port )
You can’t perform that action at this time.
0 commit comments