diff tests/test-minirst.py @ 13011:4936a04b6792

minirst: improved support for option lists. This enables minirst to parse and print option lists which have both long and short options. Before, we could only parse option lists with long options.
author Erik Zielke <ez@aragost.com>
date Tue, 02 Nov 2010 17:44:19 +0100
parents 54be08fa4d1d
children df47381b41d6
line wrap: on
line diff
--- a/tests/test-minirst.py	Tue Nov 16 13:29:35 2010 +0100
+++ b/tests/test-minirst.py	Tue Nov 02 17:44:19 2010 +0100
@@ -120,16 +120,19 @@
 There is support for simple option lists,
 but only with long options:
 
---all      Output all.
---both     Output both (this description is
-           quite long).
---long     Output all day long.
+-X, --exclude  filter  an option with a short and long option with an argument
+-I, --include          an option with both a short option and a long option
+--all                  Output all.
+--both                 Output both (this description is
+                       quite long).
+--long                 Output all day long.
 
---par      This option has two paragraphs in its description.
-           This is the first.
+--par                 This option has two paragraphs in its description.
+                      This is the first.
 
-           This is the second.  Blank lines may be omitted between
-           options (as above) or left in (as here).
+                      This is the second.  Blank lines may be omitted between
+                      options (as above) or left in (as here).
+
 
 The next paragraph looks like an option list, but lacks the two-space
 marker after the option. It is treated as a normal paragraph: