mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
fixed a formatting bug in HelpFormatter
This commit is contained in:
parent
d6b783cc3b
commit
52166593b8
@ -1,7 +1,7 @@
|
||||
//
|
||||
// HelpFormatter.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/HelpFormatter.cpp#7 $
|
||||
// $Id: //poco/1.3/Util/src/HelpFormatter.cpp#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
@ -50,12 +50,13 @@ const int HelpFormatter::LINE_WIDTH = 78;
|
||||
HelpFormatter::HelpFormatter(const OptionSet& options):
|
||||
_options(options),
|
||||
_width(LINE_WIDTH),
|
||||
_indent(calcIndent()),
|
||||
_indent(0),
|
||||
_unixStyle(true)
|
||||
{
|
||||
#if !defined(POCO_OS_FAMILY_UNIX)
|
||||
_unixStyle = false;
|
||||
#endif
|
||||
_indent = calcIndent();
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// 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.
|
||||
// and Contributors.
|
||||
@ -64,7 +64,7 @@ void HelpFormatterTest::testHelpFormatter()
|
||||
.argument("path"));
|
||||
|
||||
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)
|
||||
.repeatable(true)
|
||||
.argument("path"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user