fixed a formatting bug in HelpFormatter

This commit is contained in:
Guenter Obiltschnig
2007-02-26 09:18:05 +00:00
parent d6b783cc3b
commit 52166593b8
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
// //
// HelpFormatter.cpp // HelpFormatter.cpp
// //
// $Id: //poco/Main/Util/src/HelpFormatter.cpp#7 $ // $Id: //poco/1.3/Util/src/HelpFormatter.cpp#2 $
// //
// Library: Util // Library: Util
// Package: Options // Package: Options
@@ -50,12 +50,13 @@ const int HelpFormatter::LINE_WIDTH = 78;
HelpFormatter::HelpFormatter(const OptionSet& options): HelpFormatter::HelpFormatter(const OptionSet& options):
_options(options), _options(options),
_width(LINE_WIDTH), _width(LINE_WIDTH),
_indent(calcIndent()), _indent(0),
_unixStyle(true) _unixStyle(true)
{ {
#if !defined(POCO_OS_FAMILY_UNIX) #if !defined(POCO_OS_FAMILY_UNIX)
_unixStyle = false; _unixStyle = false;
#endif #endif
_indent = calcIndent();
} }

View File

@@ -1,7 +1,7 @@
// //
// HelpFormatterTest.cpp // HelpFormatterTest.cpp
// //
// $Id: //poco/Main/Util/testsuite/src/HelpFormatterTest.cpp#5 $ // $Id: //poco/1.3/Util/testsuite/src/HelpFormatterTest.cpp#2 $
// //
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors. // and Contributors.
@@ -64,7 +64,7 @@ void HelpFormatterTest::testHelpFormatter()
.argument("path")); .argument("path"));
set.addOption( set.addOption(
Option("library-dir", "L", "specify a search path for locating library files") Option("library-dir", "L", "specify a search path for locating library files (this option has a very long description)")
.required(false) .required(false)
.repeatable(true) .repeatable(true)
.argument("path")); .argument("path"));