We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2c6e9 commit afd60bdCopy full SHA for afd60bd
1 file changed
odml/scripts/odml_view.py
@@ -5,12 +5,15 @@
5
the server is started in.
6
7
Usage: odmlView [-d DIRECTORY] [-p PORT]
8
+Usage: odmlview [-p PORT] [--fetch]
9
10
Options:
11
-p PORT Port the server will use.
12
Default is port 8000.
- -h --help Show this screen.
13
- --version Show version.
+ --fetch Fetch latest stylesheet from templates.g-node.org
14
+ to current directory
15
+ -h --help Show this screen
16
+ --version Show version
17
"""
18
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
+
67
server_port = int(parser['-p']) if parser['-p'] else PORT
68
69
run(server_port)
0 commit comments