+2009-04-18 Jonathan Pryor <jpryor@novell.com>
+
+ * Options.cs: GetLineEnd() shouldn't skip the start character, as it
+ may contain '\n' (thus preventing the following text from being
+ properly indented).
+
2009-04-17 Jonathan Pryor <jpryor@novell.com>
* Options.cs: Viktor Lundgren reported that Option.Description text of
{
int end = System.Math.Min (start + length, description.Length);
int sep = -1;
- for (int i = start+1; i < end; ++i) {
+ for (int i = start; i < end; ++i) {
if (description [i] == '\n')
return i+1;
if (IsEolChar (description [i]))
+2008-04-18 Jonathan Pryor <jpryor@novell.com>
+
+ * OptionSetTest.cs: Add test to check \n\n Option.Description handling.
+
2008-04-17 Jonathan Pryor <jpryor@novell.com>
* OptionSetTest.cs: Add additional line breaking tests.
{ "long-desc5",
"Lots of spaces in the middle - . - . - . - . - . - . - . - and more until the end.",
v => {} },
+ { "o|out=",
+ "The {DIRECTORY} to place the generated files and directories.\n\n" +
+ "If not specified, defaults to\n`dirname FILE`/cache/`basename FILE .tree`.",
+ v => {} },
{ "h|?|help", "show help text", v => {} },
{ "version", "output version information and exit", v => {} },
{ "<>", v => {} },
expected.WriteLine (" 1 2 3 4 5 and more until the end.");
expected.WriteLine (" --long-desc5 Lots of spaces in the middle - . - . - . - . - . -");
expected.WriteLine (" . - . - and more until the end.");
+ expected.WriteLine (" -o, --out=DIRECTORY The DIRECTORY to place the generated files and");
+ expected.WriteLine (" directories.");
+ expected.WriteLine (" ");
+ expected.WriteLine (" If not specified, defaults to");
+ expected.WriteLine (" `dirname FILE`/cache/`basename FILE .tree`.");
expected.WriteLine (" -h, -?, --help show help text");
expected.WriteLine (" --version output version information and exit");