mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-12 13:46:02 -04:00
Formatting change: Don't print space after elipsis in usage
This commit is contained in:
parent
9ccc290a07
commit
5489dc9597
@ -242,6 +242,7 @@ inline void DocBookOutput::printShortArg(Arg* a)
|
|||||||
removeChar(arg,']');
|
removeChar(arg,']');
|
||||||
removeChar(arg,'<');
|
removeChar(arg,'<');
|
||||||
removeChar(arg,'>');
|
removeChar(arg,'>');
|
||||||
|
removeChar(arg,'.');
|
||||||
arg.erase(0, arg.find_last_of(theDelimiter) + 1);
|
arg.erase(0, arg.find_last_of(theDelimiter) + 1);
|
||||||
std::cout << theDelimiter;
|
std::cout << theDelimiter;
|
||||||
std::cout << "<replaceable>" << arg << "</replaceable>";
|
std::cout << "<replaceable>" << arg << "</replaceable>";
|
||||||
@ -280,6 +281,7 @@ inline void DocBookOutput::printLongArg(Arg* a)
|
|||||||
removeChar(arg,']');
|
removeChar(arg,']');
|
||||||
removeChar(arg,'<');
|
removeChar(arg,'<');
|
||||||
removeChar(arg,'>');
|
removeChar(arg,'>');
|
||||||
|
removeChar(arg,'.');
|
||||||
arg.erase(0, arg.find_last_of(theDelimiter) + 1);
|
arg.erase(0, arg.find_last_of(theDelimiter) + 1);
|
||||||
std::cout << theDelimiter;
|
std::cout << theDelimiter;
|
||||||
std::cout << "<replaceable>" << arg << "</replaceable>";
|
std::cout << "<replaceable>" << arg << "</replaceable>";
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: (--stringTest)
|
|||||||
Couldn't find delimiter for this argument!
|
Couldn't find delimiter for this argument!
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test3 [-f=<float>] ... [-i=<int>] ...
|
../examples/test3 [-f=<float>] ... [-i=<int>] ... --stringTest=<string>
|
||||||
--stringTest=<string> [-B] [--] [--version] [-h]
|
[-B] [--] [--version] [-h] <string> <string>
|
||||||
<string> <string> <fileNameString> ...
|
<fileNameString> ...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test3 --help
|
../examples/test3 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: (--stringTest)
|
|||||||
Couldn't find delimiter for this argument!
|
Couldn't find delimiter for this argument!
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test3 [-f=<float>] ... [-i=<int>] ...
|
../examples/test3 [-f=<float>] ... [-i=<int>] ... --stringTest=<string>
|
||||||
--stringTest=<string> [-B] [--] [--version] [-h]
|
[-B] [--] [--version] [-h] <string> <string>
|
||||||
<string> <string> <fileNameString> ...
|
<fileNameString> ...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test3 --help
|
../examples/test3 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR:
|
|||||||
Required argument missing: unTest2
|
Required argument missing: unTest2
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test3 [-f=<float>] ... [-i=<int>] ...
|
../examples/test3 [-f=<float>] ... [-i=<int>] ... --stringTest=<string>
|
||||||
--stringTest=<string> [-B] [--] [--version] [-h]
|
[-B] [--] [--version] [-h] <string> <string>
|
||||||
<string> <string> <fileNameString> ...
|
<fileNameString> ...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test3 --help
|
../examples/test3 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: -i (--intTest)
|
|||||||
Couldn't read argument value from string '9a'
|
Couldn't read argument value from string '9a'
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test3 [-f=<float>] ... [-i=<int>] ...
|
../examples/test3 [-f=<float>] ... [-i=<int>] ... --stringTest=<string>
|
||||||
--stringTest=<string> [-B] [--] [--version] [-h]
|
[-B] [--] [--version] [-h] <string> <string>
|
||||||
<string> <string> <fileNameString> ...
|
<fileNameString> ...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test3 --help
|
../examples/test3 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: -f (--floatTest)
|
|||||||
More than one valid value parsed from string '1.0.0'
|
More than one valid value parsed from string '1.0.0'
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test3 [-f=<float>] ... [-i=<int>] ...
|
../examples/test3 [-f=<float>] ... [-i=<int>] ... --stringTest=<string>
|
||||||
--stringTest=<string> [-B] [--] [--version] [-h]
|
[-B] [--] [--version] [-h] <string> <string>
|
||||||
<string> <string> <fileNameString> ...
|
<fileNameString> ...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test3 --help
|
../examples/test3 --help
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
|
||||||
../examples/test3 [-f=<float>] ... [-i=<int>] ...
|
../examples/test3 [-f=<float>] ... [-i=<int>] ... --stringTest=<string>
|
||||||
--stringTest=<string> [-B] [--] [--version] [-h]
|
[-B] [--] [--version] [-h] <string> <string>
|
||||||
<string> <string> <fileNameString> ...
|
<fileNameString> ...
|
||||||
|
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: -s (--stringTest)
|
|||||||
Couldn't find delimiter for this argument!
|
Couldn't find delimiter for this argument!
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
|
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] [--]
|
||||||
[--] [--version] [-h] <string> <string>
|
[--version] [-h] <string> <string> <fileNameString>
|
||||||
<fileNameString> ...
|
...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test8 --help
|
../examples/test8 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: -s (--stringTest)
|
|||||||
Couldn't find delimiter for this argument!
|
Couldn't find delimiter for this argument!
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
|
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] [--]
|
||||||
[--] [--version] [-h] <string> <string>
|
[--version] [-h] <string> <string> <fileNameString>
|
||||||
<fileNameString> ...
|
...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test8 --help
|
../examples/test8 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR:
|
|||||||
Required argument missing: unTest2
|
Required argument missing: unTest2
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
|
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] [--]
|
||||||
[--] [--version] [-h] <string> <string>
|
[--version] [-h] <string> <string> <fileNameString>
|
||||||
<fileNameString> ...
|
...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test8 --help
|
../examples/test8 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: -i (--intTest)
|
|||||||
Couldn't read argument value from string '9a'
|
Couldn't read argument value from string '9a'
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
|
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] [--]
|
||||||
[--] [--version] [-h] <string> <string>
|
[--version] [-h] <string> <string> <fileNameString>
|
||||||
<fileNameString> ...
|
...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test8 --help
|
../examples/test8 --help
|
||||||
|
@ -2,9 +2,9 @@ PARSE ERROR: Argument: -f (--floatTest)
|
|||||||
More than one valid value parsed from string '1.0.0'
|
More than one valid value parsed from string '1.0.0'
|
||||||
|
|
||||||
Brief USAGE:
|
Brief USAGE:
|
||||||
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
|
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] [--]
|
||||||
[--] [--version] [-h] <string> <string>
|
[--version] [-h] <string> <string> <fileNameString>
|
||||||
<fileNameString> ...
|
...
|
||||||
|
|
||||||
For complete USAGE and HELP type:
|
For complete USAGE and HELP type:
|
||||||
../examples/test8 --help
|
../examples/test8 --help
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
|
||||||
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
|
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] [--]
|
||||||
[--] [--version] [-h] <string> <string>
|
[--version] [-h] <string> <string> <fileNameString>
|
||||||
<fileNameString> ...
|
...
|
||||||
|
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user