summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-02-25 20:36:35 +0100
committergbrandl <devnull@localhost>2007-02-25 20:36:35 +0100
commit795b97d51a4b5f2311fc4df8d708a30b4aaa033c (patch)
tree74bf04bb464ae7fa22cf06cc1ae91e585ba2ef20 /tests/test_cmdline.py
parent4f20affc8e7133fc897c754ea8d5ef403ab44399 (diff)
downloadpygments-795b97d51a4b5f2311fc4df8d708a30b4aaa033c.tar.gz
[svn] Fix a cmdline bug.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index f524e976..00572d96 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -62,6 +62,10 @@ class CmdLineTest(unittest.TestCase):
self.assertEquals(c, 0)
self.assert_('HTML' in o)
+ def test_S_opt(self):
+ c, o, e = run_cmdline("-S", "default", "-f", "html", "-O", "linenos=1")
+ self.assertEquals(c, 0)
+
def test_invalid_opts(self):
for opts in [("-L", "-lpy"), ("-L", "-fhtml"), ("-L", "-Ox"),
("-a",), ("-Sst", "-lpy"), ("-H",),