Skip to content
Snippets Groups Projects
Commit 2628f485 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Made ~ a non-breaking space character at start of strings - useful for keeping...

Made ~ a non-breaking space character at start of strings - useful for keeping help message next to option names.  For example: to get "-thresh <value>      binary threshold" you put in "~<value>\tbinary threshold" as the help text
parent 89ba367b
No related branches found
No related tags found
No related merge requests found
...@@ -96,9 +96,13 @@ namespace Utilities { ...@@ -96,9 +96,13 @@ namespace Utilities {
} }
ostream& operator<<(ostream &os, const BaseOption& o) { ostream& operator<<(ostream &os, const BaseOption& o) {
return os << string test=o.help_text();
"\t" << o.key() << if ((test.length()>=1) && (test[0]=='~')) {
"\t" << o.help_text(); test[0]=' ';
return os << "\t" << o.key() << test;
} else {
return os << "\t" << o.key() << "\t" << o.help_text();
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment