mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
add help screen
This commit is contained in:
@@ -85,7 +85,7 @@ protected:
|
|||||||
.callback(OptionCallback<TextEncodingCompiler>(this, &TextEncodingCompiler::handleClassName)));
|
.callback(OptionCallback<TextEncodingCompiler>(this, &TextEncodingCompiler::handleClassName)));
|
||||||
|
|
||||||
options.addOption(
|
options.addOption(
|
||||||
Option("encoding-name", "e", "Specify the encoding name.")
|
Option("encoding-name", "e", "Specify the encoding name. Can be specified multiple times.")
|
||||||
.required(true)
|
.required(true)
|
||||||
.repeatable(true)
|
.repeatable(true)
|
||||||
.argument("encodingName")
|
.argument("encodingName")
|
||||||
@@ -113,8 +113,22 @@ protected:
|
|||||||
{
|
{
|
||||||
HelpFormatter helpFormatter(options());
|
HelpFormatter helpFormatter(options());
|
||||||
helpFormatter.setCommand(commandName());
|
helpFormatter.setCommand(commandName());
|
||||||
helpFormatter.setUsage("OPTIONS");
|
helpFormatter.setUsage("{options} <table-URI>");
|
||||||
helpFormatter.setHeader("Add some text here...");
|
helpFormatter.setHeader(
|
||||||
|
"\n"
|
||||||
|
"The POCO C++ Text Encodings Compiler.\n"
|
||||||
|
"Copyright (c) 2018 by Applied Informatics Software Engineering GmbH.\n"
|
||||||
|
"All rights reserved.\n\n"
|
||||||
|
"This program compiles Unicode character encoding tables "
|
||||||
|
"from http://www.unicode.org/Public/MAPPINGS/ to TextEncoding "
|
||||||
|
"classes for the Poco Encodings library. \n\n"
|
||||||
|
"The following command line options are supported:"
|
||||||
|
);
|
||||||
|
helpFormatter.setFooter(
|
||||||
|
"For more information, please see the POCO C++ Libraries "
|
||||||
|
"documentation at <http://pocoproject.org/docs/>."
|
||||||
|
);
|
||||||
|
helpFormatter.setIndent(8);
|
||||||
helpFormatter.format(std::cout);
|
helpFormatter.format(std::cout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user