11diff --git a/asciinema.py b/asciinema.py
2- index 8644220..849a3b9 100644
2+ index 8644220..44dad26 100644
33--- a/asciinema.py
44+++ b/asciinema.py
55@@ -2,20 +2,20 @@ import os
@@ -36,7 +36,8 @@ index 8644220..849a3b9 100644
3636+ "autoplay": "autoPlay",
3737+ "idle-time-limit": "idleTimeLimit",
3838 "terminalfontsize": "terminalFontSize",
39- "terminallineheigth": "terminalLineHeigth",
39+ - "terminallineheigth": "terminalLineHeigth",
40+ + "terminallineheight": "terminalLineHeight",
4041 "terminalfontfamily": "terminalFontFamily",
4142 "audiourl": "audioUrl",
4243 }
@@ -104,11 +105,12 @@ index 8644220..849a3b9 100644
104105 raise nodes.SkipNode
105106
106107
107- @@ -73,15 +91,34 @@ def depart(self, node):
108+ @@ -73,15 +91,35 @@ def depart(self, node):
108109 pass
109110
110111
111112+ def bool_parse(argument):
113+ + """Parse the option as boolean."""
112114+ if argument is None:
113115+ raise ValueError("Boolean option must have a value")
114116+
@@ -142,7 +144,7 @@ index 8644220..849a3b9 100644
142144 "start-at": directives.unchanged,
143145 "speed": directives.unchanged,
144146 "idle-time-limit": directives.unchanged,
145- @@ -90,7 +127 ,7 @@ class ASCIINemaDirective(SphinxDirective):
147+ @@ -90,7 +128 ,7 @@ class ASCIINemaDirective(SphinxDirective):
146148 "fit": directives.unchanged,
147149 "controls": directives.unchanged,
148150 "markers": directives.unchanged,
@@ -151,7 +153,7 @@ index 8644220..849a3b9 100644
151153 "terminalfontsize": directives.unchanged,
152154 "terminalfontfamily": directives.unchanged,
153155 "terminallineheight": directives.unchanged,
154- @@ -102,25 +139,30 @@ class ASCIINemaDirective(SphinxDirective):
156+ @@ -102,25 +140,25 @@ class ASCIINemaDirective(SphinxDirective):
155157
156158 def run(self):
157159 arg = self.arguments[0]
@@ -163,11 +165,6 @@ index 8644220..849a3b9 100644
163165- if path and not path.endswith('/'):
164166- path += '/'
165167- fname = arg if arg.startswith('./') else path + arg
166- +
167- + if self.option_spec:
168- + for option, value in options.items():
169- + self.option_spec[option](value)
170- +
171168+ kw = {"options": options}
172169+ path = options.get("path", "")
173170+ if path and not path.endswith("/"):
@@ -198,7 +195,7 @@ index 8644220..849a3b9 100644
198195 return [Asciinema(**kw)]
199196
200197 def is_file(self, rel_file):
201- @@ -129,17 +171 ,18 @@ class ASCIINemaDirective(SphinxDirective):
198+ @@ -129,17 +167 ,18 @@ class ASCIINemaDirective(SphinxDirective):
202199
203200 def to_b64(self, filename):
204201 import base64
0 commit comments