summaryrefslogtreecommitdiff
path: root/pygments/formatters/img.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/img.py')
-rw-r--r--pygments/formatters/img.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
index 59b29008..5bff5d93 100644
--- a/pygments/formatters/img.py
+++ b/pygments/formatters/img.py
@@ -305,6 +305,10 @@ class ImageFormatter(Formatter):
self.line_number_width = 0
self.drawables = []
+ def get_style_defs(self, arg=''):
+ raise NotImplementedError('The -S option is meaningless for the image '
+ 'formatter. Use -O style=<stylename> instead.')
+
def _get_line_height(self):
"""
Get the height of a line.