mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
fixed a formatting bug in HelpFormatter
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
Reference in New Issue
Block a user